Skip to content
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

Error: The file is not a correct arm64 binary. Try thinning (via lipo) or unarchiving (via ar) first #4

Closed
ryanbooker opened this issue Jun 30, 2021 · 2 comments

Comments

@ryanbooker
Copy link

Have you seen this error before? The fat framework definitely includes an arm64 slice and runs fine on device.

@darrarski
Copy link
Owner

This is a strange issue, probably caused by compiler optimization. I experienced it, but the actual problem was with arm64-to-sim, as described here. In debug mode, the make-xcframework will print the correct error to the console, but in release mode, the message you are seeing is printed.

For now, I don't have a fix for arm64-to-sim. It works with some frameworks (like GoogleCast or GoogleInteractiveMediaAds) but does not for others.

You can omit -arm64sim flag when running make-xcframework and the XCFramework should be created for you, but without arm64-simulator architecture. You can also try to use -verbose flag to get a detailed log of what's going on when the script is run.

@markst
Copy link

markst commented Jun 2, 2023

Just to mention, I also experienced this when attempting to generate xcframework from SpotifyMetadata.framework
bogo/arm64-to-sim#20 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants