Masonry报unrecognized selector sent to instance的错

最近使用Masonry时报unrecognized selector sent to instance的错误,头文件也都已经倒入。本文仅做自己平日记录,方便以后查找。

Masonry报unrecognized selector sent to instance的错_第1张图片
来自iPhone X

经过多方查找发现是Build setting里的 Other Link Flags有没有对masonsy链接。在Other Link Flags下添加:$(inherited)(如下图)

来自iPhone X

再经过设置后,发现依然报ld: library not found for -lAFNetworking的错误。现在只需要 pod update即可。

参考链接

http://www.cnblogs.com/huangzs/p/6340011.html
http://blog.csdn.net/yq910902/article/details/51146075

你可能感兴趣的:(Masonry报unrecognized selector sent to instance的错)