Hey everyone!
I suspect this is a fairly easy problem having to do with the fact that I’m still not super comfortable with iOS permissions/iCloud containers etc, but could use some help. Heres where I’m at:
Running a release build:
- Android:
- iOS:
Running an Ad Hoc build:
- Android:
- iOS:
The issue that arises is due to a variable pertaining to iCloud container environment being null. The specific error is:
...
error: exportArchive: exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided
Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided}
...
I’m using the DocumentPicker (DocumentPicker - Expo Documentation) thus had to set up an iCloud container and enable iCloud documents as specified in the link provided. Everything works fine locally, builds for production etc, but does not build when i run an Ad Hoc run. I looked at my Ad Hoc provisioning profile, and it DOES have iCloud as an enabled capability, so I’m not entirely sure where else to go from here haha.
One thing that I WILL note is that I suspect it probably has something to do with the fact that my “Production” panel in the cloudkit dashboard looks like the following:
though if I attempt to “deploy to production” using the cog drop down at the top right of the “Development” panel, it simply says “No changes to deploy. The schema in development is the same as in production”
Could of course also just be that this variable needs to be set somewhere, and it isnt being set now. Just not sure why it WOULD be set in prod and not an ad hoc run.
Let me know if anyone has any ideas/I can provide any more helpful information!