-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archiving an iOS app that links against code built with 1.52-nightly yields an LLVM ld error #83106
Comments
Attempting to archive using Xcode Version 12.5 beta 3 (12E5244e):
|
I tested 1.55 nightly with the new Xcode 13 beta (which uses llvm 12+). I no longer have an issue building or archiving. |
A similar error has reappeared with rust nightly 1.56 and Xcode 13 beta:
|
Just going to put a table here for reference
|
Also put a link with the match xcode / lvvm versions: https://en.wikipedia.org/wiki/Xcode#Xcode_11.x_-_13.x_(since_SwiftUI_framework)_2 |
Hey, I'm getting this error still when trying to archive. Any ideas how to resolve? Thanks! |
Bitcode is now deprecated by Apple going forward, and this seems to be a bug related to bitcode, and was expressed as fixed by at least one person, so I am closing this on the assumption that this is not actually a problem today. |
I don't believe this was a bitcode error, strictly. I believe this is an unfortunate but probably unavoidable consequence of building with bleeding edge Rust and targeting Apple devices. Rust was generating binaries using llvm 13 and Xcode was trying to parse them with llvm 12. Essentially Rust was writing a newer format than Xcode thought it understood (in practice everything worked fine when executing, Xcode would just barf when running "validations" at the time of packaging and uploading to Apple). If this version miss-match is only limited to bitcode's binary format (I'm not 100% on the details of the mechanics here and what the scope of libLTO is) and not generally applicable to link-time optimizations, then yes it's more or less a bitcode error and hopefully won't pop up in the future. |
Rust C-FFI libraries built with 1.52-nightly are not able to be archived into an iOS application using the Xcode Version 12.4 (12D4e):
For more detailed context and steps to reproduce, see discussion on: #79408. Building with the previous "release"
nightly 2020-12-31
resolves the issue.I'm not sure whether there's anything for rust to do here of if we just have to wait for Xcode to update.
The text was updated successfully, but these errors were encountered: