unrecognized selector sent to instance xxxx 报错

原来的项目没有使用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 instance xxxx 报错)