App Packaging: bundle format unrecognized, invalid, or unsuitable

I am trying to package a Filemaker 18 Runtime app.

A week ago, I managed to get 90% of the way towards doing as much, using MS Copilot as a guide.

Unfortunately, due to my confusion over the landing stage files, I decided to start the process from scratch.

This time, I fell at the first stage:

Code Signing my .app Bundle.

The Terminal command:

codesign --deep --force --verify --verbose \ --sign "Developer ID Application: ME (V********)" \ "/Users/Me/Documents/Apps/MyApp/Runtime/MyApp/My App.app"

Returned the error:

/Users/Me/Documents/Apps/MyApp/Runtime/MyApp/My App.app: bundle format unrecognized, invalid, or unsuitable In subcomponent: /Users/Me/Documents/Apps/MyApp/Runtime/MyApp/My App.app/Contents/Frameworks/FMWrapper.framework

No matter how many separate elements within the bundle I sign, I encounter the same error message.

A few days ago, the identical command worked first time.

I would be obliged for any help you can provide.

Thanks.

App Packaging: bundle format unrecognized, invalid, or unsuitable
 
 
Q