iOS 更新私有库 pod lib lint 失败

参考:https://blog.csdn.net/watson2017/article/details/109114524

错误一:

ld: in /var/folders/hg/f9t0ymfj3gg9tk2j1dr23j400000gn/T/CocoaPods-Lint-20210122-94670-1do7n6-xxxx, building for iOS Simulator, but linking in object file built for iOS, file '/var/folders/hg/f9t0ymfj3gg9tk2j1dr23j400000gn/T/CocoaPods-Lint-20210122-94670-1do7n6-xxx' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

在 私有库podspec 文件中添加s.pod_target_xcconfig = { 'VALID_ARCHS' => 'x86_64 armv7 arm64' }

错误二:

xxx did not pass validation, due to 5 warnings (but you can use `--allow-warnings` to ignore them).

使用pod lib lint --allow-warnings(忽略警告)

错误三:
[iOS] unknown: Encountered an unknown error (Unable to find a specification for `xxx` to `xxx`

pod spec lint --verbose --allow-warnings --sources='git@私有库地址.git,https://github.com/CocoaPods/Specs.git'

使用:

添加私有库名: pod repo add 自定义私有库名 xxx仓库地址
pod repo push 私有索引库名 xxx.podspec --allow-warnings将podspec添加到本地私有索引库, 然后自动push到远程索引库。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容