-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fails to parse parse dynamic framework if it contains new arm64_32 arch slice #113
Comments
|
Thanks for the report! I'm guessing Apple added a new cputype and subtype without telling anybody, so this should be a relatively quick fix. I'll make the changes tonight. |
Thanks @woodruffw for quick reply. will wait for your fix. |
woodruffw
added a commit
that referenced
this issue
Sep 26, 2018
Based on binary samples, it looks like CPU_TYPE_ARM64_32 is the same constant as CPU_TYPE_ARM, ORed with a new ABI flag (0x02000000, instead of 0x01000000 for CPU_ARCH_ABI64). Similarly, the only CPU subtype seen so far appears to be a direct copy of CPU_SUBTYPE_ARM64_V8 and CPU_SUBTYPE_ARM_V8. Fixes #113.
woodruffw
added a commit
that referenced
this issue
Sep 26, 2018
Based on binary samples, it looks like CPU_TYPE_ARM64_32 is the same constant as CPU_TYPE_ARM, ORed with a new ABI flag (0x02000000, instead of 0x01000000 for CPU_ARCH_ABI64). Similarly, the only CPU subtype seen so far appears to be a direct copy of CPU_SUBTYPE_ARM64_V8 and CPU_SUBTYPE_ARM_V8. Fixes #113.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Apple has added a new arm64_32 arch for WatchOS 5.0 SDK (Xcode 10.0). If a a dynamic framework has this arch, ruby-macho is not able to read it. This is breaking Cocoapod project because it thinks that framework is static and not dynamic. But this framework is a valid dynamic framework.
macho library fails to read this framework.
Test Script
This throws an error.
I have tested, if framework does not include arm64_32 slice, then it successfully reads the framework.
I have attached openssl.framework.zip so you can test on your end. I'm on MacOS 10.13.6.
The text was updated successfully, but these errors were encountered: