NSUnknownKeyException error when uploading with altool

I am attempting to upload a new version of an existing App. The build and upload technique is one that we've used for many years for many of the Apps we manage including this one. I've built the IPA file. I upload the IPA file using "xcrun altool" but I keep getting the error shown below. (Note, I have no issues uploading another one of our Apps using the same command.)

AI is suggesting that the problem may be caused by the name of the App. The App name is "@1 Access". It is suggesting that the current version of the altool may not be handling the name starting with '@'. If I run in verbose mode I can see in the WEB SERVICE RESPONSE headers... "Applications = { "@1 Access 1.0 (iOS App)" = xxxxxxxxx; };". But the error message omits the '@'... "...for the key 1 Access 1.0 (iOS App)".

Can anyone help me get passed this issue ? If this is a bug with altool, who do I contact as I tried Apple Developer Support but they just refer me to this Developer Forum ?

ERROR:

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<__NSDictionaryM 0x71248d360> valueForUndefinedKey:]: this class is not key value coding-compliant for the key 1 Access 1.0 (iOS App).'

*** First throw call stack: ( 0 CoreFoundation 0x000000018444ebf0 __exceptionPreprocess + 176

    1   libobjc.A.dylib                     0x0000000183eda91c objc_exception_throw + 88

    2   CoreFoundation                      0x00000001844725c8 _CFBundleGetValueForInfoKey + 0

    3   Foundation                          0x000000018665eeb8 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 196

    4   Foundation                          0x0000000185bfd71c -[NSObject(NSKeyValueCoding) valueForKey:] + 280

    5   Foundation                          0x0000000185be1ea4 -[NSDictionary(NSKeyValueCoding) valueForKey:] + 144

    6   ContentDelivery                     0x0000000100b73528 -[NSDictionary(ContentDelivery) sanitize] + 276

    7   ContentDelivery                     0x0000000100b73590 -[NSDictionary(ContentDelivery) sanitize] + 380

    8   ContentDelivery                     0x0000000100b73590 -[NSDictionary(ContentDelivery) sanitize] + 380

    9   ContentDelivery                     0x0000000100b3ef48 -[CDWebService invokeJsonWithServiceURL:operationName:params:] + 14328

    10  ContentDelivery                     0x0000000100b43c40 -[CDWebService makeServiceCall:params:] + 4272

    11  ContentDelivery                     0x0000000100b45190 -[CDWebService(lookupSoftwareForBundleID) lookupSoftwareForBundleID:] + 380

    12  ContentDelivery                     0x0000000100b51d84 -[CDAuthContext providerPublicIDForBundleID:] + 404

    13  altool                              0x000000010047fb48 altool + 31560

    14  altool                              0x000000010048dbfc altool + 89084

    15  altool                              0x0000000100495b9c altool + 121756

    16  altool                              0x0000000100496f5c altool + 126812

    17  altool                              0x000000010049b909 altool + 145673

    18  altool                              0x0000000100483a59 altool + 47705

    19  libswift_Concurrency.dylib          0x00000002883f2f45 _ZL22completeTaskAndReleasePN5swift12AsyncContextEPNS_10SwiftErrorE + 1

)

libc++abi: terminating due to uncaught exception of type NSException

zsh: abort xcrun altool --upload-app -f "Access1.ipa" -t ios -u -p xxxxxx

AI is suggesting

Hmmmm, that might actually be on track. Specifically, this part of the exception is a concern:

this class is not key value coding-compliant for the key 1 Access 1.0 (iOS App).

This crash should generate a crash report. Can you post it here? See Posting a Crash Report for advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi Quinn,

The link in your post is regarding crashes when running the App. This is not the App crashing. This is an issue with the altool command line utility. The only thing I can provide is the entire verbose log that is generated when altool is run. Is that what you are after ?

Anthony

This is not the App crashing.

Understood. I was looking for the altool crash report. If you run the Console utility and select Crash Reports on the left, you should see it in the list.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for the clarification. Here's the crash report...

Thanks for the crash report.

And, yeah, from that I can confirm that this is most definitely a bug in altool. Please file a bug about this, including the crash report and the verbose log output. Once you’re done, post the bug number here and I’ll add my own internal analysis of it.

I don’t see any way around this other than to remove the @ from your app’s name )-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks Quinn, I've filed a bug report. The bug number is FB24707376.

Cheers, Anthony

NSUnknownKeyException error when uploading with altool
 
 
Q