Xcode 5 iOS 7 CocoaPods链接器错误 [英] Xcode 5 iOS 7 CocoaPods Linker Error

查看:98
本文介绍了Xcode 5 iOS 7 CocoaPods链接器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将旧项目升级到新的iOS 7.它已经在使用Cocoapods了。我编译并运行,在模拟器和设备上一切正常。我试图使用Xcode存档它,我得到以下错误。

I just upgraded my old project to new iOS 7. It was already using Cocoapods. I compile and run and everything works fine on the simulator and the device. I tried to archive it using Xcode and I get the following error.

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

任何想法!

更新:

Pods项目的架构设置如下:

The architecture for the Pods project is set as the following:

Standard architectures (armv7,armv7s)

解决方案

Cocoapods已从我的项目中删除。现在一切都很好!

Cocoapods has been removed from my project. Everything is good now!

推荐答案

听起来你只需要更新cocoapods。对于其他不想通过简单地从项目中移除cocoapod来解决问题的人,请执行以下操作:

Sounds like you just needed to update cocoapods. For anyone else who doesn't want to solve the problem by simply removing cocoapods from your project, do this:


  1. 检查您的cocoapods的版本:

  1. Check your version of cocoapods:

pod --version

pod --version

如果它小于0.25.0,你需要做更新(如有必要,请不要忘记sudo):

If it's less than 0.25.0, you need to do an update (don't forget "sudo" if necessary):

gem update cocoapods

gem update cocoapods

确保您的广告连播已更新:

Make sure your pods are updated:

pod install

pod install

最后,打开你的。 xcworkspace文件。

Finally, open your .xcworkspace file.

你应该好好去。

这篇关于Xcode 5 iOS 7 CocoaPods链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆