Asleepace
Asleepace

Reputation: 3745

Fastlane gym exportOptionsPlist error for key "iCloudContainerEnvironment": expected one of {Development, Production}

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

Answers (1)

Asleepace
Asleepace

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

Related Questions