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

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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 23
  • Comments: 26 (4 by maintainers)

Commits related to this issue

Most upvoted comments

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.

the latest image is now using xcode13.3

Same issue here. Using expo sdk 46 and running eas build with --local flag on Azure pipeline using ‘macos-latest’ image. could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1316.0.21.2.5_0' Reader: '1300.0.29.30_0')', using libLTO version 'LLVM version 13.0.0, (clang-1300.0.29.30)' for architecture arm64

+-------------+--------------------------------+
|              Build environment               |
+-------------+--------------------------------+
| xcode_path  | /Applications/Xcode_13.2.1.app |
| gym_version | 2.209.1                        |
| sdk         | iPhoneOS15.2.sdk               |
+-------------+--------------------------------+

Thanks! Does anyone know how to easy detect the third-party lib compiled with the newest XCode?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Wojciech Kozyra @.> Sent: Friday, April 22, 2022 1:37:48 PM To: expo/eas-cli @.> Cc: Luca Agostini @.>; Author @.> Subject: Re: [expo/eas-cli] eas build -p ios | Fastlane build failed with unknown error (Issue #1079)

It looks like we will need new code for next SDK, so we will probably update latest image next week

— Reply to this email directly, view it on GitHubhttps://github.com/expo/eas-cli/issues/1079#issuecomment-1106428406, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXEMV5IXN77AGVMQSTOHOYTVGKFQZANCNFSM5T7VESWQ. You are receiving this because you authored the thread.Message ID: @.***>