Masonry icon indicating copy to clipboard operation
Masonry copied to clipboard

crash in MASViewContraint line 130

Open weixianlove opened this issue 5 years ago • 0 comments

New Issue Checklist

🚫 If this template is not filled out your issue will be closed with no comment. 🚫

  • [ ] I have looked at the Documentation
  • [ ] I have filled out this issue template.

Issue Info

Info Value
Platform e.g. ios/osx/tvos
Platform Version e.g. 8.0
Masonry Version e.g. 1.0
Integration Method e.g. carthage/cocoapods/manually

Issue Description

我们SDK使用的1.0版本,我参照最新版本Masonry分类在SDK中增加了一个VIew的分类以支持safeArea,在SDK中正常运行,当SDK加入其它项目,且该项目也有Masonry(1.0)时,safeArae的调用会崩溃在该项目的 MASViewContraint 的 setSecondViewAttribute: 方法中,进入了NAAssert. lldb信息如下: (lldb) po [secondViewAttribute isKindOfClass:MASViewAttribute.class] nil (lldb) po [secondViewAttribute class] MASViewAttribute

(lldb) po MASViewAttribute.class MASViewAttribute

手动注释NSAssert 且拷贝上方代码: _secondViewAttribute = secondViewAttribute; UI正常如预期显示。。。。求解啊。。。

weixianlove avatar Sep 09 '19 03:09 weixianlove