iOS Build Failed - Invalid bitcode version

0
Hi – I am trying to build an iOS version of our app (Build Native App 1.0.111), but getting an error – checking the iOS logs I can see this: 2022-01-05T12:13:29.1514640Z ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1300.0.29.3.0_0' Reader: '1205.0.22.11_0')', using libLTO version 'LLVM version 12.0.5, (clang-1205.0.22.11)' for architecture arm64 2022-01-05T12:13:29.1580880Z clang: error: linker command failed with exit code 1 (use -v to see invocation) I don’t know if it’s something to do with the Mendix version (9.5.1) or a setting in App Center? There are also a bunch of warnings but, you know, that’s not unusual, but one looks a bit odd: 2022-01-05T12:13:29.2035960Z /Users/runner/work/1/s/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'boost-for-react-native' from project 'Pods') Has anyone had a similar issue? Cheers
asked
2 answers
3

Of course yes it was resolved. 

  1. Login to Microsoft App center -> https://appcenter.ms/apps
  2. Go to your app (ios version)
  3. Go to Build
  4. Open configuration of master

  1. Lower your xcode version to 12.5.1

 

I don't know exactly why this suddenly became an issue and IIRC I have not set the version back to 13.

Good luck and I hope this helps :) 

answered
0

Hi Adge,

We have this exact issue with one of our projects as well. We've been able to build for iOS successfully before and our last successful build was last Thursday (5 days ago). Here's a snippet of our log:
 

2022-01-25T15:54:18.6874890Z ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1300.0.29.3.0_0' Reader: '1200.0.32.28_0')', using libLTO version 'LLVM version 12.0.0, (clang-1200.0.32.28)' for architecture arm64
2022-01-25T15:54:18.6937030Z clang: error: linker command failed with exit code 1 (use -v to see invocation)
2022-01-25T15:54:18.6946250Z 
2022-01-25T15:54:18.7478160Z warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'boost-for-react-native' from project 'Pods')
2022-01-25T15:54:18.8092190Z ** ARCHIVE FAILED **


I cannot find anything useful in our search to resolve this issue, hopefully you've already contacted Mendix Support about this and they were able to fix it for you. If so, please share the solution!

answered