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

查看:15
本文介绍了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.对于不想通过简单地从您的项目中删除 cocoapods 来解决问题的任何其他人,请执行以下操作:

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 更新 cocoapods

gem update cocoapods

确保您的 Pod 已更新:

Make sure your pods are updated:

pod 安装

最后,打开您的 .xcworkspace 文件.

Finally, open your .xcworkspace file.

你应该没事了.

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

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