Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Unity Cloud Build, XCode 11.3.1 Linker Issues
#10
(27-08-2020, 03:25 PM)josemendez Wrote: Hi,

Xcode 11.4-11.6 have a bug in the linker that prevents linking against static libs using C++11, this bug was fixed in XCode 12 beta 1. So you're forced to use Xcode 11.3.1 until Xcode 12 goes out of beta. See: http://obi.virtualmethodstudio.com/forum...-2124.html

Building/archiving using Obi 5.5 and Xcode 11.3.1 should pose no problem. What's the linker error you're getting?
Hi I get this error: 

ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/burcucoskunsengul/Desktop/Unity Builds/BeadsOnRope/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
ld: could not reparse object file in bitcode bundle: ’Invalid bitcode version (Producer: ‘1103.0.32.29.0_0’ Reader: ‘1100.0.33.16_0’)’, using libLTO version ‘LLVM version 11.0.0, (clang-1100.0.33.16)’ for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)



I can build but I can't archive. I don't think this error is related to Obi. I tried disabling bitcode by as suggested in many other forums, but it didn't solve my problem.

Thanks

(27-08-2020, 06:03 PM)Elestin Wrote: Hi I get this error: 

ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/burcucoskunsengul/Desktop/Unity Builds/BeadsOnRope/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
ld: could not reparse object file in bitcode bundle: ’Invalid bitcode version (Producer: ‘1103.0.32.29.0_0’ Reader: ‘1100.0.33.16_0’)’, using libLTO version ‘LLVM version 11.0.0, (clang-1100.0.33.16)’ for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)



I can build but I can't archive. I don't think this error is related to Obi. I tried disabling bitcode by as suggested in many other forums, but it didn't solve my problem.

Thanks

Ok, I managed to archive successfully. Disabling bitcode is the right way to go. But the problem was disabling bitcode in the project's build settings wasn't enough. I also needed to change the target to UnityFramework and disable bitcode there too. Now I successfully archived, but I get another error during the upload process. I don't think it is related to Obi anymore.

Thanks for the help!
Reply


Messages In This Thread
RE: Unity Cloud Build, XCode 11.3.1 Linker Issues - by Elestin - 27-08-2020, 06:03 PM