-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
When attempting to sign an app bundle with debug symbols shipped in it, rcodesign fails to properly detect app bundle. #128
Comments
Thanks for the bug report. This looks like yet another subtle bug with the handling of [nested] bundles, which have historically been a source of bugs in this project. In this case, the
I think this rule should prevent that There may also be an issue here where we attempt to sign the debug symbol files as Mach-O. But that bug may go away if we don't treat the Thanks again for the report. I'll try to look into this in the next few days. But no promises. |
No worries, glad you seem to know more about this than I do. 😄 I'd think avoiding traversing the directory would be a valid solution as macOS doesn't seem to care if that directory exists at all, granted I might also be missing something. I haven't tried to sign with the native macOS Cheers. |
I created a bundle layout like the following:
Signing it with Apple's tooling yielded a single signed bundle with the
It looks like Apple's tooling descends into the |
The behavior of the test is buggy, as the .dSYM/ directory should not be signed as a nested bundle. This should reproduce the bug reported in #128.
I think I just fixed this. If you still experience an issue with the latest commit on the |
Hey there,
I'm trying to integrate rcodesign into our workflow to release universal binaries for macOS while cross-compiling.
Currently if you attempt to sign an app bundle with debug symbols included (
.dSYM
subdirectory inContents/MacOS/
) rcodesign tries and fails to sign the debug symbols as if they are a binary.Here's an example when I try signing a bundle with those symbols:
I can workaround this by removing the subdirectory and transplanting it back into the bundle after signing, but it would be nice to avoid having to do that.
I have found barely any documentation about this
.dSYM
subdirectory but when creating a debug build and creating an app bundle from it the meson build system spits out one of these .dSYM directories next to the application binary.Does it make sense to ignore this directory when signing an app bundle?
Thanks for making this awesome tool!
The text was updated successfully, but these errors were encountered: