I using xcrun tool validate and publish my .pkg package.
https://help.apple.com/app-store-connect/#/devb1c185036
Code Block xcrun altool --validate-app -t osx -f ./HyperBIM-v0.36.pkg -u <my_email_address> -p <app_specific_password> 2020-11-06 00:43:54.950 altool[2841:122130] * Error: Unable to validate archive './HyperBIM-v0.36.pkg'. 2020-11-06 00:43:54.950 altool[2841:122130] * Error: code -20008 (Unable to validate your application. The Info.plist indicates a Mac app, but submitting an ipa.)
Here the Info.plist file:
Code Block <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>HyperBIM-v0.36</string> <key>CFBundleGetInfoString</key> <string></string> <key>CFBundleIconFile</key> <string>hyperbim.icns</string> <key>CFBundleIdentifier</key> <string>CreooxAG</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleLongVersionString</key> <string></string> <key>CFBundleName</key> <string>HyperBIM-v0.36-22517</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>0.36</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>0.36-22517</string> <key>CSResourcesFileMapped</key> <true/> <key>NSHumanReadableCopyright</key> <string></string> <key>NSPrincipalClass</key> <string>NSApplication</string> <key>NSHighResolutionCapable</key> <string>True</string> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleTypeExtensions</key> <array> <string>FCStd</string> </array> <key>CFBundleTypeIconFile</key> <string>freecad-doc.icns</string> <key>LSIsAppleDefaultForType</key> <true/> </dict> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleTypeExtensions</key> <array> <string>HYPcx</string> </array> <key>CFBundleTypeIconFile</key> <string>hyperbim-doc.icns</string> <key>LSIsAppleDefaultForType</key> <true/> </dict> </array> </dict> </plist>
But while running .pkg using Installer, it works fine. The app successfully installed and works fine.
Could anybody please help me why xcrun tool throwing errors and how to fix it? What is the problem with Info.plist?
Thanks