Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
526 views
in Technique[技术] by (71.8m points)

ios7 - Xcode 5 iOS 7 CocoaPods Linker Error

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)

Any ideas!

UPDATE:

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

Standard architectures (armv7,armv7s)

SOLUTION:

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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. Check your version of cocoapods:

    pod --version

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

    gem update cocoapods

  3. Make sure your pods are updated:

    pod install

  4. Finally, open your .xcworkspace file.

You should be good to go.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...