Running the following command:
xcrun altool --upload-app --type tvos --file "{IPA_PATH}" --username "{APPLE_ID}" --password "{PASSWORD}"
Results in this error message:
*** Error: Exception caught. Exception caught: *** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: cfBundleVersion) (-1010)
I am running the latest XCode 13. altool
's version is 4.059.1219. Same build can be uploaded as normal through XCode's UI. Same command was working as expected on the latest Xcode 12.
Running validate-app
gave me a proper error and I was able to resolve my issue.
xcrun altool --validate-app --type ios --file {IPA_PATH} --username "{APPLE_ID}" --password "{PASSWORD}"
** Error: Validation failed for '{IPA_PATH}'.
*** Error: No suitable application records were found. Verify your bundle identifier ‘{BUNDLE_ID}’ is correct. App Store operation failed. (-19000)
The issue in my case was that the uploader account didn't have access to our new Apple Developer Account. Hope this helps you too!
PS: In my original question I posted the wrong type it should have been ios
and not tvos
. The output is the same though.