美文网首页
iOS 更新私有库 pod lib lint 失败

iOS 更新私有库 pod lib lint 失败

作者: 烟雨痕 | 来源:发表于2021-01-22 15:41 被阅读0次

    参考: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到远程索引库。

    相关文章

      网友评论

          本文标题:iOS 更新私有库 pod lib lint 失败

          本文链接:https://www.haomeiwen.com/subject/ljaszktx.html