Reputation: 3745
I'm using Fastlane and Gym to build a react-native application and when the provisioning profile is set to ad-hoc
I get the following error:
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}
** EXPORT FAILED ** [12:21:16]: Exit status: 70
Upvotes: 0
Views: 436
Reputation: 3745
There are a couple different solutions I've tried which haven't worked, but the following finally fixed the issue:
In the Fastfile
I replaced:
gym(export_method: "ad-hoc")
with the following:
gym(
export_method: "ad-hoc",
export_options: {
iCloudContainerEnvironment: "Production"
}
)
Upvotes: 0