indygreg / apple-platform-rs

Rust crates supporting Apple platform development
588 stars 49 forks source link

[Linux] Binary setted as CFBundleExecutable in Info.plist file does not signed. #81

Closed warlockosx closed 12 months ago

warlockosx commented 1 year ago

While trying to sign app bundle on Linux - binary SomeApp.app/Contents/MacOS/SomeApp which is CFBundleExecutable in Info.plist - not signing. If sign it manually - got an error while trying to notirize - "Invalid binary signature". If make copy of SomeApp to SomeApp.copy and set SomeApp.copy to CFBundleExecutable, then SomeApp will be signed and SomeApp.copy - No. Is there some workaround to fix this?

indygreg commented 1 year ago

How are you invoking signing? Would you be able to paste output to help debugging?

When signing a bundle, <bundle>/Contents/MacOS/<CFBundleExecutable> should be recognized as the main executable and signed appropriately. So I'm not sure what's going on here without more info to help debugging.

indygreg commented 12 months ago

Without steps to reproduce, I'm going to assume this was fixed in the recent set of improvements to bundle signing. Please reopen with steps to reproduce if not.