LookinServer
LookinServer copied to clipboard
Free macOS app for iOS view debugging.
It seems that 1.0.7 fix some compilation issue on case-sensitive macOS. So just hope that this fix could be available via cocoapods.
你好 我用pod集成 在真机上看不到图层 都是显示CAGradientLayer 如下图 https://i.nextnet.cc/2022/08/15/c00d8fd7f8063.png
环境: 电脑:M1 Pro MBP Xcode: 14.0 beta2 模拟器:iOS 16.0
2020-12-07 16:09:41.239555+0800 ******[1678:318076] [Bugly] Trapped uncaught exception 'NSInvalidArgumentException', reason: 'Passing argument that is not a CGColor to +[UIColor colorWithCGColor:]' ( 0 CoreFoundation 0x00000001861e25c0 472C9193-115D-34CD-AD1D-0E7E091C9432 + 1185216 1 libobjc.A.dylib 0x000000019a25c42c objc_exception_throw...
This is really hot issue. I'm not one with that :-( Standard workflows not working
Thread 0 Crashed: 0 QuartzCore __ZN2CA5Layer13thread_flags_EPNS_11TransactionE 1 QuartzCore __ZN2CA5Layer13thread_flags_EPNS_11TransactionE 2 QuartzCore __ZN2CA5Layer4markEPNS_11TransactionEjj 3 QuartzCore __ZN2CA5Layer19property_did_changeEPNS_11TransactionEj 4 QuartzCore __ZN2CA5Layer10end_changeEPNS_11TransactionEjP11objc_objectS4_ 5 QuartzCore __ZN2CA5Layer7set_bitEjjjbMS0_FvPNS_11TransactionEE **6 DChat __58-[CALayer(LookinServer) lks_soloScreenshotWithLowQuality:]_block_invoke CALayer+LookinServer.m:141** 7 CoreFoundation ___NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ 8...
``` UIView+LookinServer.m - (NSArray *)lks_constraints { ... LookinConstraintItemType firstItemType = [self _lks_constraintItemTypeForItem:constraint.firstItem]; LookinConstraintItemType secondItemType = [self _lks_constraintItemTypeForItem:constraint.secondItem]; ... } ``` 这里使用的`firstItem` `secondItem` 在 `NSLayoutConstraint` 用的`assign`修饰的,不安全属性,真机调试的时候会产生野指针错误。 尝试对constraint.active做了一下判断,非激活态就过就将约束滤掉,观察了一段时间不在crash,目前没有发现副作用,不知道可不可以这样修复一下。 ``` NSArray *lookinConstraints =...
I hide some params and now can't find how to make it show again? 
预览页面一片空白
版本:1.0.3 问题描述:在特定的一个页面一片黑,切换2D和3D时会出来一下然后又隐藏掉了。 Xcode控制台输出: [Unknown process name] CGContextSaveGState: invalid context 0x0. Backtrace: 103414190