So I have an UITableViewController with custom Cells defined in a separate .xib Files. It's working fine on IOS 13+ but it doesn't work on IOS 12-
I got this error: Unknown class TtC6myModule24UITableViewCell in Interface Builder file.
Following by Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UITableViewCell 0x7fb48e81a800> setValue:forUndefinedKey:]: this class **** is not key value coding-compliant for the key *.'
I've checked all my IBOutlets, and connections i even recreated the cells from scratch so that XCode can regenerate The identifiers, but it keeps crashing, i've been able to reproduce the problem on simulators running iOS 12 and lesser versions.
here is the stacktrace.
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UITableViewCell 0x7fb48e81a800> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key badgeImage.'
** First throw call stack:
(
0 CoreFoundation 0x0000000109453b0b exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000108e73141 objcexceptionthrow + 48
2 CoreFoundation 0x0000000109453a59 -[NSException raise] + 9
3 Foundation 0x00000001064af00b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
4 UIKit 0x00000001073a9e08 -[UIView(CALayerDelegate) setValue:forKey:] + 172
5 UIKit 0x00000001076efa09 -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x00000001093f9e8d -[NSArray makeObjectsPerformSelector:] + 269
7 UIKit 0x00000001076ee3bf -[UINib instantiateWithOwner:options:] + 1856
8 UIKit 0x00000001074408b7 -[UITableView dequeueReusableViewOfType:withIdentifier:] + 402
9 UIKit 0x0000000107440d9b -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] + 71
10 packid 0x0000000104af30ee $s6packid7AccesVcC9tableView12cellForRowAtSo07UITableE4CellCSo0jE0C10Foundation9IndexPathVtF + 9598
11 packid 0x0000000104af5145 $s6packid7AccesVcC9tableView12cellForRowAtSo07UITableE4CellCSo0jE0C10Foundation9IndexPathVtFTo + 165
12 UIKit 0x0000000107453ab2 -[UITableView createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 750
13 UIKit 0x0000000107453cf8 -[UITableView createPreparedCellForGlobalRow:willDisplay:] + 74
14 UIKit 0x0000000107428639 -[UITableView updateVisibleCellsNow:isRecursive:] + 2845
15 UIKit 0x000000010745cccc -[UITableView performWithCachedTraitCollection:] + 111
16 UIKit 0x0000000107443e7a -[UITableView layoutSubviews] + 233
17 UIKit 0x00000001073aa55b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1268
18 QuartzCore 0x000000010a11a904 -[CALayer layoutSublayers] + 146
19 QuartzCore 0x000000010a10e526 ZN2CA5Layer16layoutifneededEPNS11TransactionE + 370
20 QuartzCore 0x000000010a10e3a0 ZN2CA5Layer28layoutanddisplayifneededEPNS11TransactionE + 24
21 QuartzCore 0x000000010a09de92 ZN2CA7Context18committransactionEPNS11TransactionE + 294
22 QuartzCore 0x000000010a0ca130 ZN2CA11Transaction6commitEv + 468
23 QuartzCore 0x000000010a0cab37 ZN2CA11Transaction17observercallbackEP19_CFRunLoopObservermPv + 115
24 CoreFoundation 0x00000001093f9717 CFRUNLOOPISCALLINGOUTTOANOBSERVERCALLBACKFUNCTION + 23
25 CoreFoundation 0x00000001093f9687 CFRunLoopDoObservers + 391
26 CoreFoundation 0x00000001093de038 CFRunLoopRunSpecific + 440
27 UIKit 0x00000001072e108f -[UIApplication run] + 468
28 UIKit 0x00000001072e7134 UIApplicationMain + 159
29 packid 0x0000000104b6dd5b main + 75
30 libdyld.dylib 0x000000010ae5265d start + 1
31 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Post
Replies
Boosts
Views
Activity
After obtaining the entitlement : "com.apple.developer.passkit.pass-presentation-suppression" we had some issue with xcode it started to systematically crash on launch as soon as we install a .mobileprovision file containing the entitlement. The problem would just disappear as soon as we installed the profile without the Entitlement.
for reference the same problem was seen in all xcode version starting from 11.3.1 to 11.5
Here you find the crash report.
Process:							 Xcode [45441]
Path:									/Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:						com.apple.dt.Xcode
Version:							 11.5 (16139)
Build Info:						IDEFrameworks-16139000000000000~62 (11E608c)
Code Type:						 X86-64 (Native)
Parent Process:				??? [1]
Responsible:					 Xcode [45441]
User ID:							 504
Date/Time:						 2020-06-19 10:29:43.099 +0200
OS Version:						Mac OS X 10.15.4 (19E287)
Report Version:				12
Anonymous UUID:				2E1D5A4C-786C-32BF-DA92-1BAAC6FED8AA
Time Awake Since Boot: 600000 seconds
System Integrity Protection: enabled
Crashed Thread:				26
Exception Type:				EXC_CRASH (SIGABRT)
Exception Codes:			 0x0000000000000000, 0x0000000000000000
Exception Note:				EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 11E608c
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSArrayM hasSuffix:]: unrecognized selector sent to instance 0x7fc1a5d47c60
UserInfo: (null)
Open FDs: 77/7168
Hints:
	0: Calling block provided by:
	0	 DVTDispatchAsync (in DVTFoundation)
	1	 DVTAsyncPerformBlock (in DVTFoundation)
	2	 __131-[IDEProvisionableManager immediatelyEvaluateWithOverrides:deviceRequirement:shouldRepairIfNecessary:isXBS:callbackQueue:callback:]_block_invoke_3 (in IDEFoundation)
	3	 NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK (in Foundation)
	4	 -[NSBlockOperation main] (in Foundation)
	5	 NSOPERATION_IS_INVOKING_MAIN (in Foundation)
	6	 -[NSOperation start] (in Foundation)
	7	 NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION (in Foundation)
	8	 __NSOQSchedule_f (in Foundation)
	9	 _dispatch_block_async_invoke2 (in libdispatch.dylib)
10	 _dispatch_client_callout (in libdispatch.dylib)
11	 _dispatch_continuation_pop (in libdispatch.dylib)
12	 _dispatch_async_redirect_invoke (in libdispatch.dylib)
13	 _dispatch_root_queue_drain (in libdispatch.dylib)
14	 _dispatch_worker_thread2 (in libdispatch.dylib)
15	 _pthread_wqthread (in libsystem_pthread.dylib)
16	 start_wqthread (in libsystem_pthread.dylib)
Backtrace:
	0	 __exceptionPreprocess (in CoreFoundation)
	1	 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
	2	 objc_exception_throw (in libobjc.A.dylib)
	3	 -[NSObject(NSObject) __retain_OA] (in CoreFoundation)
	4	 _forwarding_ (in CoreFoundation)
	5	 _CF_forwarding_prep_0 (in CoreFoundation)
	6	 -[IDEEntitlementsMerger entitlementsByMergingProfileEntitlements:appEntitlements:bundleIdentifier:appName:profileName:warnings:error:] (in IDEFoundation)
	7	 -[IDEProvisionableStatusEvaluation mergedEntitlementsWithWarnings:error:] (in IDEFoundation)
	8	 +[IDEProvisioningCommandInputs inputsFromEvaluation:] (in IDEFoundation)
	9	 -[IDEProvisionableStatusEvaluation provisioningCommandInputs] (in IDEFoundation)
10	 __97-[IDEProvisioningManager evaluateProvisioningForProvisionable:overrides:deviceRequirement:isXBS:]_block_invoke_2.374 (in IDEFoundation)
11	 __131-[IDEProvisionableManager immediatelyEvaluateWithOverrides:deviceRequirement:shouldRepairIfNecessary:isXBS:callbackQueue:callback:]_block_invoke.364 (in IDEFoundation)
12	 DVT_CALLING_CLIENT_BLOCK (in DVTFoundation)
13	 __DVTDispatchAsync_block_invoke (in DVTFoundation)
14	 _dispatch_call_block_and_release (in libdispatch.dylib)
15	 _dispatch_client_callout (in libdispatch.dylib)
16	 _dispatch_lane_serial_drain (in libdispatch.dylib)
17	 _dispatch_lane_invoke (in libdispatch.dylib)
18	 _dispatch_workloop_worker_thread (in libdispatch.dylib)
19	 _pthread_wqthread (in libsystem_pthread.dylib)
20	 start_wqthread (in libsystem_pthread.dylib)
abort() called
Application Specific Signatures:
NSInvalidArgumentException