美文网首页
unrecognized selector sent to in

unrecognized selector sent to in

作者: yto | 来源:发表于2017-08-11 15:02 被阅读0次

原来的项目没有使用cocoapods,今天了Cocoapods来管理第三方类库,过程很顺利,配置好podfile后执行pod install,第三方类库就很轻松的导入了项目中,写代码的时候也没有任何问题,但是运行起来后问题就来了。

在使用Cocoapods之前,项目中的第三方都是手动导入的,然后通过pod来导入,导入后编译没有任何问题,但是运行后立刻Crash,错误是UI控件找不到Masonry中的方法unrecognized selector sent to instance xxxxxx,而方法确实是存在的。

解决方法是:Build Settings ->Linking ->Other Librarian Flags Add $(inherited)

相关文章

网友评论

      本文标题:unrecognized selector sent to in

      本文链接:https://www.haomeiwen.com/subject/lgryrttx.html