美文网首页
cocoapods 创建库的报错汇总

cocoapods 创建库的报错汇总

作者: 孤雁_南飞 | 来源:发表于2021-04-23 14:36 被阅读0次
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
      - NOTE  | xcodebuild:  note: Using new build system
      - NOTE  | xcodebuild:  note: Building targets in parallel
      - NOTE  | xcodebuild:  note: Using codesigning identity override: -
      - NOTE  | [iOS] xcodebuild:  note: Planning build
      - NOTE  | [iOS] xcodebuild:  note: Constructing build description
      - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
    

    只要在验证后面加上 --skip-import-validation

    pod lib lint --verbose --skip-import-validation
    

    忽略警告再后面添加 --allow-warnings

    pod lib lint --verbose --skip-import-validation --allow-warnings
    

    提交同上

    1. target has transitive dependencies that include statically linked binaries
      目标具有包含静态链接二进制文件的可传递依赖项

    再 podspec 文件中添加

      s.static_framework = true
    

    3.[!] Unable to find other source ref for BZHomeModule_search@2x.png for target BZHomeModule.
    一直提示找不到引用源
    问题所在:因为Assets.xcassets图片文件和.swift 文件再一个目录下面

      s.ios.source_files  = 'BZHomeModule/**/*' 
      s.resource_bundles = {
        'BZHome_bundles' => ['BZHomeModule/Assets.xcassets']
      } 
    

    解决方法:创建一个文件夹,和Assets.xcassets同级,把其他文件放到这个文件夹里面,例如

      s.ios.source_files  = 'BZHomeModule/Classes/**/*' 
      s.resource_bundles = {
        'BZHome_bundles' => ['BZHomeModule/Assets.xcassets']
      } 
    
    [!] Unable to find a specification for `HQJUITool (~> 1.0.0)`
    
    You have either:
     * mistyped the name or version.
     * not added the source repo that hosts the Podspec to your Podfile.
    

    pod repo update 更新一下数据

    5、版本库 YLUIKit 升级报错

    Installing YLUIKit 1.2.2 (was 1.2.0)
    
    [!] Error installing YLUIKit
    [!] /usr/bin/git clone https://git.youlu.com/ylios/YLUIKit.git /var/folders/wx/cy72m3cx4ggfsdd02pcj55v80000gn/T/d20211130-21738-1rtdd0n --template= --single-branch --depth 1 --branch 1.2.2
    
    Cloning into '/var/folders/wx/cy72m3cx4ggfsdd02pcj55v80000gn/T/d20211130-21738-1rtdd0n'...
    warning: Could not find remote branch 1.2.2 to clone.
    fatal: Remote branch 1.2.2 not found in upstream origin
    

    此处问题原因是仓库版本号 tag 尚未标记,或者已经标记的 tag 尚未推送到 orgin 上,就可解决问题

    相关文章

      网友评论

          本文标题:cocoapods 创建库的报错汇总

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