重新安裝了幾次cocoapods和重新下載代碼,每次的報錯都有不一樣...
系統是10.11.3,安裝cocoapods是使用sudo gem install -n /usr/local/bin cocoapods
下面是最後一次使用pod install
終端機列印出來的
haua-mac-pro:2016_ios_src haua$ pod install
Updating local specs repositories
CocoaPods 1.0.0.beta.4 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
Downloading dependencies
Using AFDownloadRequestOperation (2.0.1)
Using AFNetworking (2.6.3)
Using AMapLocation (1.1.1)
Using DACircularProgress (2.3.1)
Using FMDB (2.6)
Using MBProgressHUD (0.9.2)
Using MJRefresh (3.1.0)
Installing MWPhotoBrowser (2.1.1)
Installing SDWebImage (3.7.5)
Installing YTKNetwork (0.6.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 6 dependencies from the Podfile and 10
total pods installed.
沒發現報錯,但是打開項目還是不行,上一次報錯是很多文件都找不到,這次雖然還是沒有.a
文件,但是其它文件不丟失了,下圖是這次的報錯,不單單是有報錯,而且調試按鈕右邊沒有選擇simulator iPhone版本的按鈕。
我打開自己的新建的專案就沒問題,神奇了。
为情所困2017-05-02 09:27:14
樓主是不是沒有修改build Settings裡User Header Search Paths
xcode專案中 在TARGETS -> Search Paths -> User Header Search Paths 中 寫入 ${SRCROOT}再將後面參數改為recursive。