Cannot sign my app

Hello, I am on maxOS 14.6 and I developed a C++ application for macOS with graphical-user interface by using wxWidgets. The .app application bundle is built correctly and the application runs. Now I would like to sign it to get it notarized.

I get the following error

sudo codesign -vvv --deep --strict MyApp.app/Contents/MacOS/MyApp MyApps.app/Contents/MacOS/MyApp: code has no resources but signature indicates they must be present

If I check the signature I get

% pkgutil --check-signature MyApp.app Package "MyApp": Status: package is invalid (checksum did not verify)

How may I fix this? Thank you!

Most problems like this are caused by a mismatch between the packaging and the signature. Apple code signatures are different depending on whether the code is bundled or not, and if that determination is out of sync with the on-disk packaging then you get this error.

For a more detailed explanation of this, see this page. However, I suspect that you’ll be able to solve this problem by:

  1. Assembly the program into its .app wrapper.

  2. Signing it using the process described in Creating distribution-signed code for macOS.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Cannot sign my app
 
 
Q