objective-c - 从svn下载回来的项目使用了CocoaPods 但是使用pod install后,项目依然不能启动?

 也曾悲摧过_192 发布于 2022-10-26 05:21

重新安装了几次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版本的按钮。


我打开自己的新建的项目就没问题,神奇了。

1 个回答
  • 楼主是不是没有修改build Settings里User Header Search Paths

    xcode项目中 在TARGETS -> Search Paths -> User Header Search Paths 中 写入 ${SRCROOT}再将后面参数改为recursive。

    2022-10-27 00:42 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有