xcode libPods.a 出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25923222/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error with libPods.a
提问by Gaius Augustus
I'm working with an old project in the new XCode 6 GM.
我正在新的 XCode 6 GM 中处理一个旧项目。
I ran pod install
with a target platform :ios, '6.0'
set then opened the workspace created and selected "6.0" as "Deployment target" for the project but the build failed with this warning:
我pod install
使用目标platform :ios, '6.0'
集运行,然后打开创建的工作区并选择“6.0”作为项目的“部署目标”,但构建失败并显示以下警告:
Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'x86_64' didn't contain all required architectures 'i386'
Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'x86_64' didn't contain all required architectures 'i386'
And this error:
而这个错误:
ld: library not found for -lPods
ld: library not found for -lPods
The libPods.a
is being displayed in red color in the project navigation bar.
将libPods.a
被显示为红色在项目导航栏。
What could be causing that?
是什么原因造成的?
回答by Marck Gorgon
I just used pod install
on an old project under the new Xcode 6 GM and it worked, check the libPods.a
is in your finder folder and retry the pod install
command without a target.
我刚刚pod install
在新的 Xcode 6 GM 下的一个旧项目上使用,它工作正常,检查它libPods.a
是否在您的 finder 文件夹中,然后在pod install
没有目标的情况下重试该命令。