-
Notifications
You must be signed in to change notification settings - Fork 1
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
Doesn't work on Big Sur #1
Comments
Thank you for the report. This seems to strongly depend on the OS version. I wrote the script running Catalina. Maybe for Big Sur, it needs other paths. I guess the correct absolute paths on Big Sur (based on the pre-link process) can be identified by running |
otool -L does return absolute paths, but also returns paths to system libraries such as /usr/lib/libSystem.B.dylib, which doesn't exist on Big Sur. Technically, the script should be disregarding any paths under /usr/lib/, as that's immutable anyway. |
Hey. Yeah after I wrote my reply I took a look at the script I wrote. I remembered my code wrongly. Back in 2019 I had a list of system related libs. I thought it was still this code. But actually, I rewrote it already and it dynamically analzes the executable... Are you running the script against an executable that you built on the same Big Sur system? |
Yes. It imports libraries that don't exist, because Big Sur only provides the entire contents of /usr/lib/ and /System/Library/Frameworks/ as pre-linked cache blobs for all supported architectures. |
I see. Yeah, that explains... so my assumption / code of the script as of now is wrong for all OS versions from Big Sur upwards probably. Do you have an idea how to deal with that on Big Sur? Unfortunately, I have no Big Sur system here to get my hands dirty :) |
Well, on Big Sur, the System dylib or framework objects exist here:
|
I see, thank you for the insight. Could you provide me an example output of |
Sure:
|
This attempts to copy
/usr/lib/libSystem.B.dylib
into the bundle, which doesn't exist in the system. Nor do any of the other system dylibs, as they're in the pre-link system.The text was updated successfully, but these errors were encountered: