Post

Replies

Boosts

Views

Activity

Able to sign and notarize app, but verifying for app store results in error: The Info.plist indicates a Mac app, but submitting an ipa
I've seen this issue in several other posts that all suggest different solutions (most of which are no longer valid). I have an application developed in Go (for macOS only-no mobile) that has a directory structure like this: myapp.app └── Contents &#9;&#9;├── Info.plist &#9;&#9;├── MacOS &#9;&#9;│   └── myapp.app &#9;&#9;├── README &#9;&#9;├── Resources &#9;&#9;│   └── icon.icns &#9;&#9;└── _CodeSignature &#9;&#9;&#9;&#9;└── CodeResources The app installer looks and works very nicely after going through code-signing process. The .app (and contents) are first signed with the Developer ID Application cert with --options=runtime for hardening. The productbuild command is used to build the installer, and the productsign command is used to sign with the 3rd Party Mac Developer Installer cert. The installer package that is created works as expected. I am able to notarize the application/staple it if the Developer ID Installer is used to sign the package. But in this case I am using the 3rd Party Mac Developer Installer to sign the package for the app store. After the signing is completed, I use this command to validate the package: xcrun altool --validate-app -f file -t platform -u username [-p password] [--output-format xml] This is where the problem occurs. Despite a package installer that works fine, I am unable to validate the app: <plist version="1.0"> &#9;<dict> &#9;&#9;<key>os-version</key> &#9;&#9;<string>10.15.7</string> &#9;&#9;<key>product-errors</key> &#9;&#9;<array> &#9;&#9;&#9;<dict> &#9;&#9;&#9;&#9;<key>code</key> &#9;&#9;&#9;&#9;<integer>-20008</integer> &#9;&#9;&#9;&#9;<key>message</key> &#9;&#9;&#9;&#9;<string>The Info.plist indicates a Mac app, but submitting an ipa.</string> &#9;&#9;&#9;&#9;<key>userInfo</key> &#9;&#9;&#9;&#9;<dict> &#9;&#9;&#9;&#9;&#9;<key>NSLocalizedDescription</key> &#9;&#9;&#9;&#9;&#9;<string>The Info.plist indicates a Mac app, but submitting an ipa.</string> &#9;&#9;&#9;&#9;&#9;<key>NSLocalizedFailureReason</key> &#9;&#9;&#9;&#9;&#9;<string>Unable to validate your application.</string> &#9;&#9;&#9;&#9;</dict> &#9;&#9;&#9;</dict> &#9;&#9;</array> &#9;&#9;<key>tool-path</key> &#9;&#9;<string>/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework</string> &#9;&#9;<key>tool-version</key> &#9;</dict> </plist> I also tried adding the app with the Transporter tool. That tool results in the error: Failed to create the .itmsp for 'myapp.pkg'. Failed to get the app's bundle id. Here is the Info.plist: <plist version="1.0"> &#9;<dict> &#9;&#9;<key>CFBundlePackageType</key> &#9;&#9;<string>APPL</string> &#9;&#9;<key>CFBundleInfoDictionaryVersion</key> &#9;&#9;<string>6.0</string> &#9;&#9;<key>CFBundleName</key> &#9;&#9;<string>myapp</string> &#9;&#9;<key>CFBundleExecutable</key> &#9;&#9;<string>MacOS/myapp.app</string> &#9;&#9;<key>CFBundleIdentifier</key> &#9;&#9;<string>name.myapp</string> &#9;&#9;<key>CFBundleVersion</key> &#9;&#9;<string>1.0</string> &#9;&#9;<key>CFBundleGetInfoString</key> &#9;&#9;<string>myapp by my co</string> &#9;&#9;<key>CFBundleShortVersionString</key> &#9;&#9;<string>1.0</string> &#9;&#9;<key>CFBundleIconFile</key> &#9;&#9;<string>icon.icns</string> &#9;</dict> </plist> Any suggestions are greatly appreciated.
15
0
2.8k
Nov ’20