pod 安装 Masonry 遇到问题

pod 导入第三方库 Masonry:

在工程masonryTest的文件下新建一个Podfile文件

编辑如下内容:

platform :ios, '8.0'
xcodeproj 'mansoryTest'

pod 'Masonry', '~> 0.6.3'

可以自行更改

切换到masonryTest 的工程目录下面打开终端

$:pod install

等待数分钟,命令行执行完毕OK,

然后在工程目录下面打开masonryTest.workspace

不要打开那个.xcodepro了。说过多少次了

编译通过就好。

我遇到的情况

ld: library not found for -lMasonry

stackOverflow逛了一大圈没有解决,

试过

1、添加静态库,target->build phrase->Link Binary with Libraries 

点+号,添加Mansory.a无效

2、target->build settings ->Build Active Architechure Only = NO ,无果

3、other linker flag :全部删除  OK ,编译通过

 

原文地址:https://www.cnblogs.com/wjw-blog/p/Masonry.html