Log Into Apple Account

When a user first downloads my application they are prompted to sign into their apple account via a pop up.

I have not had this pop up previously, I believe the change occurred after iOS18.

I have functions that do a few things:

Retrieves userRecordID Retrieves a userprofile(via userrecordid) from cloudkit.

Answered by SkyNav in 827509022

Hi All!

I have solved this , it was actually a transaction updater in my StoreKit files that was prompting the sign in!

Included is my function:

    func fetchUserRecordID() async throws -> CKRecord.ID {
        let container = CKContainer.default()
        do {
            let recordID = try await container.userRecordID()
            print("User record ID: \(recordID.recordName)")
            return recordID
        } catch {
            // Handle error
            throw error
        }
    }
Accepted Answer

Hi All!

I have solved this , it was actually a transaction updater in my StoreKit files that was prompting the sign in!

Log Into Apple Account
 
 
Q