问题描述
归档项目时出错。这是我的环境。
I got an error when archiving a project. This is my environment.
- Mac OS Lion
- Xcode 4.3.1
- iOS SDK 5.1
项目部署目标是:
IPHONEOS_DEPLOYMENT_TARGET 3.2
错误显示:
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我想Pods是我用来管理XCode项目依赖项的CocoaPods。
I guess Pods is CocoaPods that I used to manage XCode project dependencies.https://github.com/CocoaPods/CocoaPods
这是我的Podfile
This is my Podfile
platform :ios
dependency 'libPusher', '1.1'
我不确定错误是什么意思?
I am not sure what the error means?
推荐答案
我使用
target :App do
…
end
target :AppTests do
…
end
分别产生两个新产品 libPods-App.a 和 libPods-AppTests.a 使之前的产品 libPods.a 过时了。我不得不从两个目标的构建阶段配置的 Link Binary With Libraries Section 中删除此产品。
This resulted in two new products libPods-App.a and libPods-AppTests.a, respectively and they made the previous product libPods.a obsolete. I had to remove this product from the Link Binary With Libraries Section of the Build Phases configuration of both targets.
这篇关于找不到-lPods的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!