You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that BeefBuild generated object/archive is not compatible with Apple LLVM (with bitcode disabled).
I've tried a bunch of triplets aarch64-apple-io, arm64-apple-ios always getting the same result.
Lipo tool returns a bunch of 'invalid record' and 'Unsupported version of DISubrange' but says that arch is arm64.
Repo case is attached, just run the build.sh, it will build beef project and use the resulting .a file in the xcode build.
The text was updated successfully, but these errors were encountered:
jazzbre
changed the title
iOS link fails with 'ld: Invalid record for architecture arm64'
[Bug] iOS link fails with 'ld: Invalid record for architecture arm64'
Mar 10, 2021
I think languages like Rust manage to generate iOS-compatible obj/bitcode with the standard LLVM.
Here's an old issue describing some of the bitcode generation issues: rust-lang/rust#35968
I think this is not a bitcode issue anyway.
Apple says this:
"For iOS apps, bitcode is the default, but optional. For watchOS and tvOS apps, bitcode is required. If you provide bitcode, all apps and frameworks in the app bundle (all targets in the project) need to include bitcode."
So maybe we can ignore bitcode for now.
It seems that BeefBuild generated object/archive is not compatible with Apple LLVM (with bitcode disabled).
I've tried a bunch of triplets aarch64-apple-io, arm64-apple-ios always getting the same result.
Lipo tool returns a bunch of 'invalid record' and 'Unsupported version of DISubrange' but says that arch is arm64.
Repo case is attached, just run the build.sh, it will build beef project and use the resulting .a file in the xcode build.
You think we should use https://github.com/apple/llvm-project on Apple devices?
BeefLangiOSTest.zip
The text was updated successfully, but these errors were encountered: