Could not find the main bundle or missing CFBundleIdentifier

Attempting to verify a Java application prior to submission to Apple Store. Used JPackage (JDK 14.0.1) to successfully create a TMViewer.app. Used codesign to sign the app OK. Created Apple Connect entry, and assigned an app-specific password OK. Examining the 'app' Contents all looks OK, and if manually copied into /Applications and double-clicked the application launches normally.


Have been stuck for a week attempting to use altool to verify the app, prior to upload. Keep getting this error:


"Could not find the main bundle or the Info.plist is missing a CFBundleIdentifier in '/Users/jdc/Projects/TMViewer/packaging/TMViewer.app"


The Info.plist does exist, and does contain a CFBundleIdentifier as expected.


As a test, took a copy of /Applications/App Store.app and tried to verify that - generating the same error. The command executed:


xcrun altool --validate-app -f /Users/jdc/Projects/TMViewer/packaging/TMViewer.app -t osx -u j.crowley@computer.org -p xxxxxxxxxx


Any suggestions or reference to docs?


Thanks

Progress - discovered a missed step. First have to run 'productbuilder' to create a .pkg from the .app.


Would suggest that 'altool' issue an error message if the file given in -f does not have one of the supported types.

>Would suggest that


Feel free to make such requests via the bug reporter linked below, adding your report # to your thread for ref., thanks and good luck.

Could not find the main bundle or missing CFBundleIdentifier
 
 
Q