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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:36:56  来源:igfitidea点击:

Error with libPods.a

iosobjective-crubyxcodecocoapods

提问by Gaius Augustus

I'm working with an old project in the new XCode 6 GM.

我正在新的 XCode 6 GM 中处理一个旧项目。

I ran pod installwith 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.ais being displayed in red color in the project navigation bar.

libPods.a被显示为红色在项目导航栏。

What could be causing that?

是什么原因造成的?

回答by Marck Gorgon

I just used pod installon an old project under the new Xcode 6 GM and it worked, check the libPods.ais in your finder folder and retry the pod installcommand without a target.

我刚刚pod install在新的 Xcode 6 GM 下的一个旧项目上使用,它工作正常,检查它libPods.a是否在您的 finder 文件夹中,然后在pod install没有目标的情况下重试该命令。