美文网首页
podspec文件验证时候遇到的问题

podspec文件验证时候遇到的问题

作者: 00after | 来源:发表于2018-12-12 15:35 被阅读37次

    问题:
    pod install 私有库

    Mac-mini:BaseLib xxx$ pod install 
    
    [!] Error installing XXXNetWorkClient
    [!] /usr/bin/git clone http://git.corp.XXX.cn/XXXNetWorkClient.git /var/folders/y_/3tb8h3hx3nz5d_g9s_7lcz940000gn/T/d20181207-6835-1acb66t --template= --single-branch --depth 1 --branch 0.0.1
    
    Cloning into '/var/folders/y_/3tb8h3hx3nz5d_g9s_7lcz940000gn/T/d20181207-6835-1acb66t'...
    remote: The project you were looking for could not be found.
    fatal: repository 'http://git.corp.XXX.cn/XXXNetWorkClient.git /' not found
    
    

    解决方法:私有库没有权限,加权限

    问题:

    Mac-mini:BaseLib xxx$ pod lib lint --allow-warnings
    
     -> BaseLib (0.2.1)
        - WARN  | attributes: Missing required attribute `license`.
        - WARN  | license: Missing license type.
        - ERROR | [iOS] unknown: Encountered an unknown error (Unable to find a specification for `NetWorkClient (= 0.0.1)` depended upon by `BaseLib/Pk`) during validation.
    
    

    解决方法:私有库需要加上sources路径,并且要有权限

    $ pod lib lint --sources='https://git.oschina.net/xxx/Spec.git,https://github.com/CocoaPods/Specs.git' --use-libraries --allow-warnings
    

    iOS组件化学习(4)
    Unable to find a specification for xxx depended upon by xxx

    相关文章

      网友评论

          本文标题:podspec文件验证时候遇到的问题

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