Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Unity Cloud Build, XCode 11.3.1 Linker Issues
#1
Exclamación 
I've been attempting to build my project using Unity Cloud Build and it would seem the object files included in the latest package are incompatible with the newest XCode in cloud build? I get the following error:

Code:
/Libraries/Obi/Plugins/iOS/libOni.a(Oni.o), could not parse object file ------redacted------/Libraries/Obi/Plugins/iOS/libOni.a(Oni.o): 'Invalid bitcode version (Producer: '1103.0.32.29.0_0' Reader: '1100.0.33.17_0')', using libLTO version 'LLVM version 11.0.0, (clang-1100.0.33.17)' for architecture arm64
68: ▸ ❌;  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is my thinking correct? If so, what version of XCode, etc. should I be using?

Thanks!

(13-04-2020, 01:48 AM)dylanrw Wrote: I've been attempting to build my project using Unity Cloud Build and it would seem the object files included in the latest package are incompatible with the newest XCode in cloud build? I get the following error:

Code:
/Libraries/Obi/Plugins/iOS/libOni.a(Oni.o), could not parse object file ------redacted------/Libraries/Obi/Plugins/iOS/libOni.a(Oni.o): 'Invalid bitcode version (Producer: '1103.0.32.29.0_0' Reader: '1100.0.33.17_0')', using libLTO version 'LLVM version 11.0.0, (clang-1100.0.33.17)' for architecture arm64
68: ▸ ❌;  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is my thinking correct? If so, what version of XCode, etc. should I be using?

Thanks!

It looks to me like you built this using Xcode 11.4, while Cloud Build only supports up to 11.3.1.
Reply
#2
Hi,

We generally build releases with the latest available XCode. Obi Rope 5.2 was compiled with 11.3, if you need version 5.2 write to support(at)virtualmethodstudio.com and we'll send it to you.
Reply
#3
Sent!
Reply
#4
(13-04-2020, 08:02 AM)josemendez Wrote: Hi,

We generally build releases with the latest available XCode. Obi Rope 5.2 was compiled with 11.3, if you need version 5.2 write to support(at)virtualmethodstudio.com and we'll send it to you.

Hi Jose,

I'm using XCODE 11.3.1 and Obi Fluid 5.3 and getting the same error.

(Producer: '1103.0.32.29.0_0' Reader: '1100.0.33.17_0')', using libLTO version 'LLVM version 11.0.0, (clang-1100.0.33.17)' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Already send you an email... but if you're seeing this right now, please point me the directions, because I'm need to deliver a projeto ASAP and got this error by the last minute.

Tks,
Reply
#5
(26-04-2020, 10:37 PM)danilocastro Wrote: Hi Jose,

I'm using XCODE 11.3.1 and Obi Fluid 5.3 and getting the same error.

(Producer: '1103.0.32.29.0_0' Reader: '1100.0.33.17_0')', using libLTO version 'LLVM version 11.0.0, (clang-1100.0.33.17)' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Already send you an email... but if you're seeing this right now, please point me the directions, because I'm need to deliver a projeto ASAP and got this error by the last minute.

Tks,

Hi,

5.3 was built with 11.4, but there's a bug in XCode 11.4 that prevents the linker to finish (see http://obi.virtualmethodstudio.com/forum...p?tid=2124). As a result of bitcode versions not being backwards compatible, you can't use 11.4 and 5.3 together.

To deploy to iOS using XCode 11.3.1, you need to use Obi 5.1. Write to support(at)virtualmethodstudio.com, I will send it to you.
Reply
#6
Hi, I get this error using Obi 5.3 and Xcode 11.3:

ld: in /Users/burcucoskunsengul/Desktop/Unity Builds/BeadsOnRope/Libraries/Obi/Plugins/iOS/libOni.a(Oni.o), could not parse object file /Users/burcucoskunsengul/Desktop/Unity Builds/BeadsOnRope/Libraries/Obi/Plugins/iOS/libOni.a(Oni.o): ’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

What should I do?

Thanks
Reply
#7
(27-08-2020, 01:26 AM)Elestin Wrote: Hi, I get this error using Obi 5.3 and Xcode 11.3:

ld: in /Users/burcucoskunsengul/Desktop/Unity Builds/BeadsOnRope/Libraries/Obi/Plugins/iOS/libOni.a(Oni.o), could not parse object file /Users/burcucoskunsengul/Desktop/Unity Builds/BeadsOnRope/Libraries/Obi/Plugins/iOS/libOni.a(Oni.o): ’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

What should I do?

Thanks

Use Obi 5.4 or 5.5. 5.5 is available in the store, I can send you 5.4 if you wish, just write to support(at)virtualmethodstudio.com

kind regards,
Reply
#8
(27-08-2020, 07:33 AM)josemendez Wrote: Use Obi 5.4 or 5.5. 5.5 is available in the store, I can send you 5.4 if you wish, just write to support(at)virtualmethodstudio.com

kind regards,

Hi, thanks for your reply. Upgrading to 5.5 solved some of my problems with Obi. But I needed to upgrade Unity to use Obi 5.5 and now I get another linker problem while archiving since my Xcode version is 11.3. I should probably upgrade my Xcode to the latest stable version (11.6). Does Obi 5.5 work with Xcode 11.6?  

Thanks
Reply
#9
(27-08-2020, 03:17 PM)Elestin Wrote: Hi, thanks for your reply. Upgrading to 5.5 solved some of my problems with Obi. But I needed to upgrade Unity to use Obi 5.5 and now I get another linker problem while archiving since my Xcode version is 11.3. I should probably upgrade my Xcode to the latest stable version (11.6). Does Obi 5.5 work with Xcode 11.6?  

Thanks

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?
Reply
#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