问题描述
重新安装了几次cocoapods和重新下载代码,每次的报错都有不一样...系统是10.11.3,安装cocoapods是使用sudo gem install -n /usr/local/bin cocoapods下面是最后一次使用pod install终端打印出来的
haua-mac-pro:2016_ios_src haua$ pod installUpdating local specs repositoriesCocoaPods 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.organd the CHANGELOG for this version http://git.io/BaH8pQ.Analyzing dependenciesDownloading dependenciesUsing 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 projectIntegrating client projectSending statsPod installation complete! There are 6 dependencies from the Podfile and 10total pods installed.
没发现报错,但是打开项目还是不行,上一次报错是很多文件都找不到,这次虽然还是没有.a文件,但是其它文件不丢失了,下图是这次的报错,不单单是有报错,而且调试按钮右边没有选择simulator iPhone版本的按钮。
我打开自己的新建的项目就没问题,神奇了。
问题解答
回答1:楼主是不是没有修改build Settings里User Header Search Paths
xcode项目中 在TARGETS -> Search Paths -> User Header Search Paths 中 写入 ${SRCROOT}再将后面参数改为recursive。