部署到设备时链接器错误

时间:2016-03-14 16:52:04

标签: ios xcode cocoapods afoauth2manager

我使用Pods来安装AFOAuth2Manager库,这是我的pod文件:

platform :ios, '9.2'
pod 'AFOAuth2Manager'

我在xcworkspace文件中打开项目,我可以在模拟器中构建它。但是当我尝试将它构建到我的iPhone 6S时,它失败了,这里是错误日志:

ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我在构建设置中编辑其他链接器标志。我发现-l“AFNetwork”在$(继承)里面所以我删除了$(继承)并添加了-l“AFOAuth2Manager”然后将错误消息更改为ld:library not找到-l AFOAuth2Manager。

我在StackOverflow中遵循了一些设置,但这仍然无法解决。

仅构建活动架构:否

0 个答案:

没有答案