-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash xcode 10.2 #554
Comments
Hi, @Usman4Github, yea, I found the same issue. Trying to fix now |
great. waiting for further updates |
I am not sure if it is related in any way, but I face a similar issue in our application where Macaw is integrated to since the upgrade. The usage of the library is pretty simple, there is an instance of this class set up from the storyboard in the app.
Whenever the viewcontroller creates an instance of this, the application crashes without an error dump and this error since the upgrade to Xcode 10.2:
|
This issue fixed in the master branch, and will be available in next release |
great. when it will be available |
Release? |
yes. i mean how can we get fixed code. do we need to update pod or what else |
You can change in pod file (instead of
and run pod update |
ok great. thanks |
update as above. facing this issue now: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -containsValueForKey: cannot be sent to an abstract object of class NSCoder: Create a concrete instance!' Any idea. i am still checking further |
my bad sorry. i was using initialization as SVGColorView() resolved as initializing with frame SVGColorView(frame: CGRect(x: 0, y: 0, width: 80, height: 62)) hope it will help others also |
my issue was resolved by updating to the current master branch version, thanks a lot! |
@Usman4Github according to apple release notes of swift 5 - for current release recommended init(frame: ) initializers for UIView and NSView subclasses instead of init() |
ok great. thanks. |
Update xcode to latest one. now app crash on using svgcolor view. it was working on previous one before update.
crash log:
When added to a view, the constraint's items must be descendants of that view (or the view itself). This will crash if the constraint needs to be resolved before the view hierarchy is assembled. Break on -[UIView(UIConstraintBasedLayout) _viewHierarchyUnpreparedForConstraint:] to debug.
2019-03-26 16:07:18.180525+0500 TheQuranApp[18096:632046] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from initWithCoder:'
*** First throw call stack:
(
0 CoreFoundation 0x0000000110a7b6fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010f9a1ac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000110a7b555 +[NSException raise:format:] + 197
3 UIFoundation 0x0000000115c5b89c UINibDecoderDecodeObjectForValue + 827
4 UIFoundation 0x0000000115c5baf9 UINibDecoderDecodeObjectForValue + 1432
5 UIFoundation 0x0000000115c5b554 -[UINibDecoder decodeObjectForKey:] + 251
6 UIKitCore 0x000000011a5a2705 -[UIView initWithCoder:] + 802
7 UIFoundation 0x0000000115c5b852 UINibDecoderDecodeObjectForValue + 753
8 UIFoundation 0x0000000115c5baf9 UINibDecoderDecodeObjectForValue + 1432
9 UIFoundation 0x0000000115c5b554 -[UINibDecoder decodeObjectForKey:] + 251
10 UIKitCore 0x000000011a5a2705 -[UIView initWithCoder:] + 802
11 UIFoundation 0x0000000115c5b852 UINibDecoderDecodeObjectForValue + 753
12 UIFoundation 0x0000000115c5b554 -[UINibDecoder decodeObjectForKey:] + 251
13 UIKitCore 0x0000000119d87b41 -[UIRuntimeConnection initWithCoder:] + 178
14 UIFoundation 0x0000000115c5b852 UINibDecoderDecodeObjectForValue + 753
15 UIFoundation 0x0000000115c5baf9 UINibDecoderDecodeObjectForValue + 1432
16 UIFoundation 0x0000000115c5b554 -[UINibDecoder decodeObjectForKey:] + 251
17 UIKitCore 0x0000000119d853f1 -[UINib instantiateWithOwner:options:] + 1216
18 UIKitCore 0x0000000119b023af -[UIViewController _loadViewFromNibNamed:bundle:] + 382
19 UIKitCore 0x0000000119b02d39 -[UIViewController loadView] + 177
20 UIKitCore 0x0000000119b03048 -[UIViewController loadViewIfRequired] + 172
21 UIKitCore 0x0000000119a67004 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 68
22 UIKitCore 0x0000000119a672f7 -[UINavigationController _startTransition:fromViewController:toViewController:] + 146
23 UIKitCore 0x0000000119a683b5 -[UINavigationController _startDeferredTransitionIfNeeded:] + 896
24 UIKitCore 0x0000000119a696a7 -[UINavigationController __viewWillLayoutSubviews] + 150
25 UIKitCore 0x0000000119a4a38d -[UILayoutContainerView layoutSubviews] + 217
26 UIKitCore 0x000000011a5d39c1 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1417
27 QuartzCore 0x000000010f04beae -[CALayer layoutSublayers] + 173
28 QuartzCore 0x000000010f050b88 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 396
29 QuartzCore 0x000000010f05cee4 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 72
30 QuartzCore 0x000000010efcc3aa _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 328
31 QuartzCore 0x000000010f003584 _ZN2CA11Transaction6commitEv + 608
32 UIKitCore 0x000000011a11eccb __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 128
33 CoreFoundation 0x00000001109e2aec CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
34 CoreFoundation 0x00000001109e22b0 __CFRunLoopDoBlocks + 336
35 CoreFoundation 0x00000001109dcb34 __CFRunLoopRun + 1252
36 CoreFoundation 0x00000001109dc302 CFRunLoopRunSpecific + 626
37 GraphicsServices 0x0000000115ecb2fe GSEventRunModal + 65
38 UIKitCore 0x000000011a105ba2 UIApplicationMain + 140
39 TheQuranApp 0x000000010de6128b main + 75
40 libdyld.dylib 0x000000011402a541 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
The text was updated successfully, but these errors were encountered: