eas build -p ios | Fastlane build failed with unknown error

See original GitHub issue

Build/Submit details page URL

No response

Summary

I was able to properly create .ipa until last week, but now I get this error in FastLane during linking:

❌  ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1316.0.21.2.3_0' Reader: '1300.0.29.30_0')', using libLTO version 'LLVM version 13.0.0, (clang-1300.0.29.30)' for architecture arm64


❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

I tried to compile it with image=“latest” with no luck. Android build is working properly.

I also tried to archive the project locally with XCode13.3 after “expo prebuild --clean -p ios” and it worked.

Managed or bare?

Managed

Environment

expo-env-info 1.0.2 environment info: System: OS: macOS 12.2.1 Shell: 3.2.57 - /bin/bash Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm Watchman: 2021.11.15.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8309675 Xcode: 13.3/13E113 - /usr/bin/xcodebuild npmPackages: babel-preset-expo: 9.0.2 => 9.0.2 expo: ^44.0.6 => 44.0.6 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.51.0 expo-cli: 5.3.2 Expo Workflow: bare

Error output

No response

Reproducible demo or steps to reproduce from a blank project

This is my eas.json:

{
  "cli": {
    "version": ">= 0.47.0"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production-ios": {
      "ios": {
        "image": "latest"
      },
      "distribution": "store",
      "releaseChannel": "production.ios-1.7.1"
    }
  },
  "submit": {
    "production": {}
  }
}

I queued the build with:

eas build -p ios --profile production-ios

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:15
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

13reactions
frankbretcommented, May 11, 2022

Answered myself, with a little help from this thread somehow related. So you just have to add “image”: “latest” to the “ios” element in eas.json in the right profile. ex. :

{
  "cli": {
    "version": ">= 0.52.0"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "android": {
        "gradleCommand": ":app:assembleDebug"
      },
      "ios": {
        "buildConfiguration": "Debug",
		"image": "latest"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}

And build with : eas build --platform ios --profile development

(just to do the same with “production” profile (probably))

And the reason is here Latest = 13.3 default = 13.0 !!!
So you need to use upper XCode builder version to build libraries builded with higher versions.

2reactions
wkozyra95commented, Apr 25, 2022

the latest image is now using xcode13.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo eas-cli iOS build failing - xcode - Stack Overflow
After checking the "Run Fastlane" section in the Expo build log, multiple errors are shown: Error 1: Resolving Swift Package Manager ...
Read more >
iOS build error with EAS - Expo Forums
I am using ESA to build my android and ios App. I tried “eas build --platform ios”, ... Error: Fastlane build failed with...
Read more >
Issue creating ios bundle with Expo [resolved]
iOS build failed : Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases. Fastlane errors in...
Read more >
【Expo】eas build --platform iosのiOS build failedを解決する
Copied! ✖ Build failed iOS build failed: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" ...
Read more >
Development Build Fails on Fastlane After Installing ... - Reddit
Fastlane seems to error out on any path containing RevenueCat (i.e. "ios/Pods/RevenueCat/Sources/Networking/CustomerAPI.swift:22:17") and all of ...
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