使用cocoaPods

今天在把iOS工程从一台机器拷贝到一台新机器(未装cocoaPod)时遇到了如下的问题。

YuandeMacBook-Pro:ProjectDirectory user$ pod update

Update all pods

Updating local specs repositories


CocoaPods 1.0.0.beta.3 is available.

To update use: `gem install cocoapods --pre`

[!] This is a test version we'd love you to try.


For more information see http://blog.cocoapods.org

and the CHANGELOG for this version http://git.io/BaH8pQ.


Analyzing dependencies

[!] Could not automatically select an Xcode project. Specify one in your Podfile like so:


    xcodeproj 'path/to/Project.xcodeproj'


在Podfile文件里指定下工程目录就行了,比如我在Podfile文件添加这行就行了:


  1. ......  

  2. xcodeproj 'xxxprojectName.xcodeproj'   

  3. ......  

主要是让Pod找到子目录中的工程文件。