Appboy / appboy-ios-sdk

Public repo for the Braze iOS SDK
https://www.braze.com
Other
168 stars 141 forks source link

[Bug]: #341

Closed Jennifervoodoo closed 2 years ago

Jennifervoodoo commented 2 years ago

Platform

iOS

Platform Version

15.3.1

Braze SDK Version

4.4.3

Xcode Version

13.3.1

Integration Method

Cocoapods

Computer Processor

Intel

Repro Rate

100

Steps To Reproduce

Example: Try to archive the project with AppBoy 4.4.3 produce this issue:

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

Expected Behavior

It should archive the project correctly. We don't have the issue archiving with 4.3.4

Actual Incorrect Behavior

Archiving project failed.

Verbose Logs

No response

Additional Information

No response

VillSkog commented 2 years ago

Hi @Jennifervoodoo, we were facing the same issue today, and after some research it seemed like it was due to the fact that Braze was build with a version of Xcode more recent than the one we were using. And we indeed realised that our CI was using 13.2.1 and not 13.3.1 like we are locally. Bumping Xcode on our CI fixed the issue.

Maybe you could double check the Xcode version where you face that archiving issue ?

Cheers.

hokstuff commented 2 years ago

Hi @Jennifervoodoo,

Thanks for raising this and thanks @VillSkog for responding. Similar to the post above, would you be able to check to make sure that the Xcode versioning is as expected for your CI or the local environment you are using? Braze SDK version 4.4.3 was released with Xcode 13.3.1 (13E500a). Please reach out if you continue to face issues!

Jennifervoodoo commented 2 years ago

Hi @VillSkog, @hokstuff, Thanks a lot for your response. It was indeed the issue, I was using an older version of Xcode on my CI. Updating the CI to use Xcode 13.3.1 fixed the issue 🙏.