-
Notifications
You must be signed in to change notification settings - Fork 56
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
Throwing unknown load command on dataOffsetForAddress #39
Comments
Hi, facing similar issue... any workaround. |
No luck here, still waiting for a reply. |
This is because the iOS SDK's frameworks binaries from newer version of Xcode are using chained fixups and export trie Mach-O load commands to encode bind/rebase and symbol info. Not the dyld info in the older version. And the ppios-rename does not support these load commands yet. A quick fix is just download the older version of Xcode (https://xcodereleases.com) ,and use the older version sdk by passing the "--sdk-root" argument. The sdk from Xcode 11 works for me.
|
@BillBai Thanks for replying on this thread, ` 2023-05-09 11:16:09.886 ppios-rename[50889:3975433] Unknown load command: 0x80000034 We get 4-6 times "Unknown load command: 0x80000034" and then it starts analyzing the binary and generating the symbols.map file and then we run the ppios-rename --obfuscate-sources it will generate symbols.h file. |
Thanks for sharing that fix that's extremely helpful! (Xcode 11.7 is the older Xcode I am using that used to work). You mention I can add in the older dylibs, but do you know which specific older version I should copy them from please? And am I copying from Xcode? Presumably not Xcode 11.7 as that seems to be missing them :-( |
Which OS please? I'm thinking of creating a virtual machine just for this task |
I've used a virtual machine for this task as well. ( to extract old dylibs ) |
I tried on a VM running macOS 10.14, but then hit other build issues, so I need to setup a VM - which MacOS and Xcode combination are you using pls? My usual attempt is running on an M1 MacBookPro referencing SDK from 11.7, and using your PR yes (which reduced the load errors from maybe 7 lines down to now currently two). The sim runtime is bizarre it should be building for deployment devices only, maybe something else has broken too! :/ |
Hi, I'm able to run it on a Macbook Pro (2017) with MacOS Monterey 12.3 |
Ah thanks Bruno - v appreciate that - will try it asap! |
Finally got around to trying this :) I'm now trying a manual combination with build steps on the host, then manually pass args to script in VM, then back. |
Got it operating on my project but then ran into this: 2024-03-27 20:44:55.837 ppios-rename[1477:27966] Error: Cannot find offset for address 0x1000000027b170 in dataOffsetForAddress: :/ |
Recently ppios stopped working and it's throwing dozens of unknown errors on dataOffsetForAddress.
My project didn't change at all, this happened over night, after I updated to MacOS 12.6 and Xcode 14.0.1
All missing commands are related to 0x80000034 and 0x80000033
This should not be Swift related because I don't use any Swift code.
Any ideas? Thanks in advance
snippet:
...
2022-10-11 21:51:39.307 ppios-rename[15534:139893] Unknown load command: 0x80000033
2022-10-11 21:51:39.307 ppios-rename[15534:139893] Unknown load command: 0x80000034
...
2022-10-11 21:51:39.419 ppios-rename[15534:139893] Error: Cannot find offset for address 0x801000000000000d in dataOffsetForAddress:
Side note: the same project/file works fine when I switch to a MacOS 12.3 / XCode 13.1 Macbbok
The text was updated successfully, but these errors were encountered: