关于 Cocoapods 私有库的一些问题

最近总有童鞋询问在制作 Cocoapods 私有库时,遇到的问题。在此列几个比较让新手无头绪的问题,供大家参考。
错误1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决办法
这个错误是缺少依赖的系统库导致的。如果引入了第三方的库,务必去相应的官网查看到底引用哪些系统库,必须全部配置到 podspec 文件中。
错误2
- ERROR | [iOS] unknown: Encountered an unknown error ([!] /Applications/Xcode.app/Contents/Developer/usr/bin/git clone http://xxx.git/var/folders/xx/xxx/xxx–template= –single-branch –depth 1 –branch 0.1.0 Cloning into /var/folders/xx/xx/xx… fatal: Remote branch 0.1.0 not found in upstream origin ) during validation.
解决办法
未将代码上传到 Git 私有库上或者未在 Git 上增加对应的 tag 值。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。