iCloud file access results in build error

Continuing the discussion from Copying files to/from icloud:

I had to deselect iCloud to be able to build and load my iOS app onto my iPhone and iPad because Build for App Store error revealed iCloud as the offending permission that was set.

My build profile includes iCloud - see pic below.

Um. Is there some additional setting that I am missing? I want to be able to allow users to save their app data to iCloud.

What is the exact error you get with iCloud on?

The header text says the following:

The operation couldn’t be completed. 2021-10-09 15:58:32.169 xcodebuild[2365:119901] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path “/var/folders/m9/wjy986_s6b97gfbxt_jmrbcm0000gn/T/minipill_2021-10-09_15-58-32.168.xcdistributionlogs”.

2021-10-09 15:58:34.662 xcodebuild[2365:119978] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called

error: exportArchive: Provisioning profile “ABE MPDR Distro Xcode 11” doesn’t include the com.apple.developer.icloud-container-environment entitlement and doesn’t match the entitlements file’s value for the com.apple.developer.ubiquity-kvstore-identifier entitlement.

Then the fine print says the following:

Error Domain=IDEProfileQualificationErrorDomain Code=8 “Provisioning profile “ABE MPDR Distro Xcode 11” doesn’t include the com.apple.developer.icloud-container-environment entitlement and doesn’t match the entitlements file’s value for the com.apple.developer.ubiquity-kvstore-identifier entitlement.” UserInfo={NSLocalizedDescription=Provisioning profile “ABE MPDR Distro Xcode 11” doesn’t include the com.apple.developer.icloud-container-environment entitlement and doesn’t match the entitlements file’s value for the com.apple.developer.ubiquity-kvstore-identifier entitlement., IDEProfileQualificationError_RequiredEntitlements={

“application-identifier” = “$(AppIdentifierPrefix)net.realmakers.minipill”;

“com.apple.developer.icloud-container-environment” = Production;

“com.apple.developer.icloud-container-identifiers” = (

);

“com.apple.developer.icloud-services” = (

CloudDocuments,

CloudKit

);

“com.apple.developer.team-identifier” = 8B4CFJ5GXN;

“com.apple.developer.ubiquity-container-identifiers” = (

);

“com.apple.developer.ubiquity-kvstore-identifier” = (

);

“keychain-access-groups” = (

“$(AppIdentifierPrefix)net.realmakers.minipill”

);

}, IDEDistributionIssueSeverity=3, IDEProfileQualificationErrorMissingEntitlements=(

“com.apple.developer.icloud-container-environment”

), IDEProfileQualificationError_Profile=<DVTEmbeddedProvisioningProfile 0x7f8ffa93c1a0: name: ABE MPDR Distro Xcode 11, UUID: 08138c8e-fd13-4e99-aa7b-10a0bf8ea7cd, teamName: Amy Barnes, teamIdentifierPrefixes: (

8B4CFJ5GXN

), entitlements: {

“application-identifier” = “8B4CFJ5GXN.net.realmakers.minipill”;

“beta-reports-active” = 1;

“com.apple.developer.icloud-container-development-container-identifiers” = (

);

“com.apple.developer.icloud-container-identifiers” = (

);

“com.apple.developer.icloud-services” = “*”;

“com.apple.developer.team-identifier” = 8B4CFJ5GXN;

“com.apple.developer.ubiquity-container-identifiers” = (

);

“com.apple.developer.ubiquity-kvstore-identifier” = “8B4CFJ5GXN.*”;

“get-task-allow” = 0;

“keychain-access-groups” = (

“8B4CFJ5GXN.*”,

“com.apple.token”

);

}, appIdentifierName: Mini Pill dose recorder basic v1, applicationIdentifierPrefixes: (

8B4CFJ5GXN

), dateCreated: 2021-10-08 02:31:57 +0000, dateExpired: 2022-10-07 22:53:40 +0000, certificateKinds: {(

“1.2.840.113635.100.6.1.4”,

“1.2.840.113635.100.6.1.7”

)}, certificateSHA1Hashes: {(

B7A251B0FF41C0FA01F87FBCB3F6D7703B464E9B

)}, supportedUDIDs: {(

)}, isUniversal: 0, isXcodeManaged: 0, platforms: {(

<DVTPlatform:0x7f8ff944db70:‘com.apple.platform.watchos’:DVTFilePath:0x7f8ff944daf0:’/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform’>,

<DVTPlatform:0x7f8ff944aed0:‘com.apple.platform.iphoneos’:DVTFilePath:0x7f8ff944ae50:’/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform’>

)}, filePath: <DVTFilePath:0x7f8ffc2b0ab0:’/Users/amybarnes/Library/MobileDevice/Provisioning Profiles/08138c8e-fd13-4e99-aa7b-10a0bf8ea7cd.mobileprovision’>>}

Here is the settings I was using for iCloud:

Screen Shot 2021-10-09 at 4.01.50 PM

My App profile for this app contains iCloud. Is there a setting that I am missing somewhere?

I played around with the settings until I got the ones that would not produce an error on Build [for App Store].

For some reason Key Value Storage borks the build?

Screen Shot 2021-10-09 at 5.37.08 PM

Not sure what other settings are required to enable Key Value Storage (I am still learning the basics for programming for iOS).

Not sure if this is a bug.

Please file a bug report about that

1 Like

Will do, you can expect it to be filed later today.

feedback://showreport?report_id=66177

Bug report has been filed.

Fixed

1 Like
Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.