0

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

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Asleepace
  • 3,466
  • 2
  • 23
  • 36

1 Answers1

0

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"
  }
)
Asleepace
  • 3,466
  • 2
  • 23
  • 36