I'm music MusicKit and everything is actually working fine. I can get my tokens, do my searches, play the music. All good.
The reason for my question is that when I make the call to initialize the SKCloudServiceController I get a bunch of errors in the console I'd like to cleanup.
In this snippet below I'm getting the authorization from the user and then retrieving the store country code for the user.
This all works fine. But at line 9 these errors are thrown that really don't seem to affect anything. But I'd like to clean them up if possible.
Any suggestions? I feel like I've missed something that I should've done and may bite me in the future if I don't get this cleared up.
The reason for my question is that when I make the call to initialize the SKCloudServiceController I get a bunch of errors in the console I'd like to cleanup.
In this snippet below I'm getting the authorization from the user and then retrieving the store country code for the user.
Code Block [SKCloudServiceController requestAuthorization:^(SKCloudServiceAuthorizationStatus status) { if (status != SKCloudServiceAuthorizationStatusAuthorized) { NSLog (@"Access to StoreKit not approved by user : code %ld", (long)status); } else { self.cloudController = [[SKCloudServiceController alloc] init]; [self.cloudController requestStorefrontCountryCodeWithCompletionHandler:^(NSString * _Nullable storefrontCountryCode, NSError * _Nullable error) { if (error) { NSLog(@"ERROR : Getting Music Store Country Code for this User : %@", error); } else { self.countryCode = storefrontCountryCode; } }]; } }];
This all works fine. But at line 9 these errors are thrown that really don't seem to affect anything. But I'd like to clean them up if possible.
Code Block [10169:2681453] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)"" [10169:2681453] SSAccountStore: Failed to fetch the backing accounts. error = Error Domain=com.apple.accounts Code=9 "(null)" [10169:2681449] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)"" [10169:2681449] SSAccountStore: Failed to fetch the backing accounts. error = Error Domain=com.apple.accounts Code=9 "(null)" [10169:2681449] SSAccountStore: Unable to get the local account. error = Error Domain=SSErrorDomain Code=100 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}
Any suggestions? I feel like I've missed something that I should've done and may bite me in the future if I don't get this cleared up.