Skip to content
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 in MASViewContraint line 130 #565

Open
2 tasks
weixianlove opened this issue Sep 9, 2019 · 0 comments
Open
2 tasks

crash in MASViewContraint line 130 #565

weixianlove opened this issue Sep 9, 2019 · 0 comments

Comments

@weixianlove
Copy link

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正常如预期显示。。。。求解啊。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant