question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EAS build distribution: internal failed with latest SDK 44 and expo-document-picker

See original GitHub issue

Summary

Hello,

My EAS build failed at “Run fastlane” step with latest SDK 44 and expo-document-picker installed

iCloudContainerEnvironment is missing in configuration, even when provided in app.json

⚠️ Bug happen only with profile distribution: internal

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}

Thank for your help 🙏

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

iOS

SDK Version (managed workflow only)

44

Environment

Expo CLI 5.0.3 environment info: System: OS: macOS 10.15.7 Shell: 5.7.1 - /bin/zsh Binaries: Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.0/bin/yarn npm: 8.3.0 - ~/.nvm/versions/node/v16.13.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 23, 25, 26, 30 Build Tools: 23.0.1, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 30.0.3, 31.0.0 System Images: android-22 | Google APIs Intel x86 Atom, android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-24 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom IDEs: Android Studio: 4.1 AI-201.8743.12.41.7042882 Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: expo: ~44.0.0 => 44.0.5 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: eas-cli: 0.45.1 expo-cli: 5.0.3 Expo Workflow: managed

Reproducible demo

How to reproduce :

  1. Create an new app with latest SDK (44) (expo init my-app)
  2. Add expo-document-picker (expo install expo-document-picker)
  3. Follow the documentation steps (Link)
  • create an iCloud Container and name it iCloud.<your_bundle_identifier>
  • set the usesIcloudStorage key to true in app.json
  • add expo-document-picker plugin in app.json
  "plugins": [
    [
      "expo-document-picker",
      {
        "appleTeamId": "YOUR_TEAM_ID",
        "iCloudContainerEnvironment": "Production"
      }
    ],
  1. Build with EAS for iOS and select a profile with distribution: internal (eas build --platform ios --profile preview) ⚠️ Bug happen only with distribution: internal

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brentvatnecommented, Jan 26, 2022

expo-document-picker@10.1.1 is released with this fix

0reactions
kevinL5commented, Jan 28, 2022

Perfect, thanks 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internal distribution - Expo Documentation
The following steps will guide you through adding internal distribution to a project that is already set up to build with EAS Build....
Read more >
I recently updated to expo SDK 44 and now I'm getting below ...
I recently updated to expo SDK 44 and now I'm getting below error when trying to build for android using eas-cli. Expo Application...
Read more >
Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build. This document is under active development; the topic it covers is...
Read more >
Migrating from "expo build" - Expo Documentation
A reference for migrating from "expo build" to EAS Build. ... in the AppDelegate.m file as this is now handled inside the expo-system-ui...
Read more >
Common development errors - Expo Documentation
Upgrade your project to a supported SDK version. If you are using a supported version and see this message, you'll need to update...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found