I was trying to upload the dmg for notoraizing our applications. But I got an error.
1 package(s) were not uploaded because they had problems:
/var/folders/_b/tz5xd08s63d2l8b5b4g_p_br0000gn/T/2DEA13CD-0FF9-4C53-8995-C939D27DE9C7/Untitled.itmsp - Error Messages:
ERROR ITMS-4302: "The software asset has an invalid primary bundle identifier: 'com.xxx.cws_64_rtw'" at SoftwareAssets/EnigmaSoftwareAsset
2019-08-20 16:18:44.235 altool[2145:106840] *** Error: ERROR ITMS-4302: "The software asset has an invalid primary bundle identifier: 'com.efi.cws_64_rtw'" at SoftwareAssets/EnigmaSoftwareAsset
Following is the command I have used to upload the dmg.
xcrun altool --notarize-app --primary-bundle-id "com.xxx.cws_64_rtw" --username "xxxx" --password "@keychain:NOTARIZE_PASSWORD" --file ~/Desktop/Packages/CWS6_RTW.dmg
dmg is also valid and it is signed with Developer ID.
codesign -vvv --deep --strict ~/Desktop/Packages/CWS6_RTW.dmg
/Users/premak/Desktop/Packages/CWS6_RTW.dmg: valid on disk
/Users/premak/Desktop/Packages/CWS6_RTW.dmg: satisfies its Designated Requirement
Could you please help?
That error means exactly what it says: Your bundle ID,
com.xxx.cws_64_rtw, is invalid. Bundle IDs are expected to be reverse DNS names and underscore is not a valid character in DNS.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"