Closed iCrazeiOS closed 4 years ago
Do you mean that the settings app crashes when libcolorpicker was compiled with FINALPACKAGE=1
or when a tweak of yours was? I don’t have any problems compiling my tweak preference bundles for release and to be used with libcolorpicker. Are you sure it’s not caused by something else? Without the crash log it isn’t much that can be done anyway.
Works fine without FP=1, also, I edited the issue to include a log
Please attach a code snippet that reproduces the crash and I'll take a look at it.
Same issue here when my tweak is compiled with FINALPACKAGE = 1 my tweaks preferences crash. And only the part that uses the libcolorpicker cell. Other "pages" of my preferences work.
Are you also using the code from the docs?
What do you mean by that? I also copied the newer version from my device.
The example code. (From the GH)
On 6 Dec 2019, at 15:58, ubik notifications@github.com wrote:
What do you mean by that?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/atomikpanda/libcolorpicker/issues/11?email_source=notifications&email_token=AJKKGVOTNHKFVP6QTG4WHJ3QXJZCFA5CNFSM4JROV7Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGEQ5BQ#issuecomment-562630278, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJKKGVJRPWN27EMBTWXCMNLQXJZCFANCNFSM4JROV7QQ.
I'm using a similar one. Bur I haven't changed it and it makes no sense that it works without FP=1
Related to #13. A new version containing a fix will be submitted soon.
Crash Log: `Date: 25/11/2019, 10:16 pm Process: Preferences Bundle id: com.apple.Preferences Device: iPhone 7, iOS 13.2.2
Exception type: NSInvalidArgumentException Reason: -[NSDictionaryI setObject:forKey:]: unrecognized selector sent to instance 0x280139100 Culprit: Unknown Call stack: 0 CoreFoundation 0x00000001bcd01820 exceptionPreprocess 1 libobjc.A.dylib 0x00000001bca29fa4 objc_exception_throw 2 CoreFoundation 0x00000001bcc0536c -[NSOrderedSet initWithSet:copyItems:] 3 CoreFoundation 0x00000001bcd05c88 forwarding 4 CoreFoundation 0x00000001bcd07a6c _CF_forwarding_prep_0 5 libcolorpicker.dylib 0x000000010ee4c3e0 LCPParseColorString 6 libcolorpicker.dylib 0x000000010ee4c568 LCPParseColorString 7 UIKitCore 0x00000001c11ea87c 45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke 8 UIKitCore 0x00000001c11ea450 -[UIView(Hierarchy) _postMovedFromSuperview:] 9 UIKitCore 0x00000001c11f8d58 -[UIView(Internal) _addSubview:positioned:relativeTo:] 10 UIKitCore 0x00000001c0f1ee78 -[UITableView _addSubview:positioned:relativeTo:] 11 UIKitCore 0x00000001c119310c -[UIScrollView _addContentSubview:atBack:] 12 UIKitCore 0x00000001c0f1ebb0 -[UITableView _addContentSubview:atBack:] 13 UIKitCore 0x00000001c0f3f1a8 53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke 14 UIKitCore 0x00000001c11f209c +[UIView(Animation) performWithoutAnimation:] 15 UIKitCore 0x00000001c0f3e9bc -[UITableView _configureCellForDisplay:forIndexPath:] 16 UIKitCore 0x00000001c0f4fd24 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] 17 UIKitCore 0x00000001c0f1d348 -[UITableView _updateVisibleCellsNow:] 18 UIKitCore 0x00000001c0f3a510 -[UITableView layoutSubviews] 19 UIKitCore 0x00000001c11ff604 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] 20 QuartzCore 0x00000001c374d78c -[CALayer layoutSublayers] 21 QuartzCore 0x00000001c3753908 CA::Layer::layout_if_needed(CA::Transaction) 22 QuartzCore 0x00000001c375e528 CA::Layer::layout_and_display_if_needed(CA::Transaction) 23 QuartzCore 0x00000001c36a6ed0 CA::Context::commit_transaction(CA::Transaction*, double) 24 QuartzCore 0x00000001c36d0bbc CA::Transaction::commit() 25 UIKitCore 0x00000001c0d9391c _afterCACommitHandler 26 CoreFoundation 0x00000001bcc7ec2c CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION 27 CoreFoundation 0x00000001bcc79b18 CFRunLoopDoObservers 28 CoreFoundation 0x00000001bcc7a0e4 CFRunLoopRun 29 CoreFoundation 0x00000001bcc798a0 CFRunLoopRunSpecific 30 GraphicsServices 0x00000001c6bd1328 GSEventRunModal 31 UIKitCore 0x00000001c0d6a740 UIApplicationMain 32 Preferences 0x000000010486d94c Preferences + 39244 33 libdyld.dylib 0x00000001bcb04360 start`