Post

Replies

Boosts

Views

Activity

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
6
0
417
1w
PHPickerViewController shows error every second attempt to display gallery
Our team has implemented PHPickerViewController to allow multiple photos to be selected. It works fine in the simulator but when tested on actual iPad we have this strange behaviour. The first time the gallery is displayed it works fine. If we try and display the gallery again it displays a window with this message “Unable to Load Items - [Try Again]”. If I tap [Try Again] or if I use our Gallery button it does display the gallery. And it keeps cycling through this behaviour. ie. every second attempt to display the gallery leads to the “Unable to Load Items” window.   Every time we display the gallery we dismiss the old instance and create/initialize a new instance of the controller. Our code is written in objective-c… -(void)initPHPickerController     {       [self dismiss];       mPHPickerController = nullref;           PHPickerConfiguration *config = [[PHPickerConfiguration alloc] init];       config.selectionLimit = 0; // 0 represents no selection limit.       config.filter = [PHPickerFilter imagesFilter];           config.preferredAssetRepresentationMode = PHPickerConfigurationAssetRepresentationModeCurrent;           PHPickerViewController *pickerViewController = [[PHPickerViewController alloc] initWithConfiguration:config];       pickerViewController.delegate = self;           mPHPickerController = pickerViewController;     }     - (void)dismiss     {       if (mPHPickerController)       {         [+mPHPickerController dismissViewControllerAnimated:YES completion:nil];       }       ...     } Any suggestions on how to fix this ? I have seen a post on stackoverflow that this may be a bug in iOS.
0
0
1.2k
Jun ’22
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
Replies
6
Boosts
0
Views
417
Activity
1w
PHPickerViewController shows error every second attempt to display gallery
Our team has implemented PHPickerViewController to allow multiple photos to be selected. It works fine in the simulator but when tested on actual iPad we have this strange behaviour. The first time the gallery is displayed it works fine. If we try and display the gallery again it displays a window with this message “Unable to Load Items - [Try Again]”. If I tap [Try Again] or if I use our Gallery button it does display the gallery. And it keeps cycling through this behaviour. ie. every second attempt to display the gallery leads to the “Unable to Load Items” window.   Every time we display the gallery we dismiss the old instance and create/initialize a new instance of the controller. Our code is written in objective-c… -(void)initPHPickerController     {       [self dismiss];       mPHPickerController = nullref;           PHPickerConfiguration *config = [[PHPickerConfiguration alloc] init];       config.selectionLimit = 0; // 0 represents no selection limit.       config.filter = [PHPickerFilter imagesFilter];           config.preferredAssetRepresentationMode = PHPickerConfigurationAssetRepresentationModeCurrent;           PHPickerViewController *pickerViewController = [[PHPickerViewController alloc] initWithConfiguration:config];       pickerViewController.delegate = self;           mPHPickerController = pickerViewController;     }     - (void)dismiss     {       if (mPHPickerController)       {         [+mPHPickerController dismissViewControllerAnimated:YES completion:nil];       }       ...     } Any suggestions on how to fix this ? I have seen a post on stackoverflow that this may be a bug in iOS.
Replies
0
Boosts
0
Views
1.2k
Activity
Jun ’22