美文网首页
使用 carthage update遇到的问题

使用 carthage update遇到的问题

作者: 小乔与周瑜 | 来源:发表于2022-02-22 08:54 被阅读0次

    问题1 .在使用 Carthage来下载github中的三方库文件出现的错误,处理方案不使用https方式,使用ssh

    报错

      $ failed with exit code 128:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
    

    解决方法

        $ carthage update --use-ssh
    

    问题2 .由于xcode11以后区分模拟器/真机 ,导致一些三方库中无正常更新.

    报错

        Building universal frameworks with common architectures is not possible. The device and simulator slices for "BMSAnalyticsAPI" both build for: arm64
    Rebuild with --use-xcframeworks to create an xcframework bundle instead.
    

    解决方法

    
    // 不区分iOS/MACOS 
    carthage update --use-xcframeworks  --use-ssh
    
    // 如果是iOS 
        $ carthage update --platform iOS --use-xcframeworks --use-ssh
    

    相关文章

      网友评论

          本文标题:使用 carthage update遇到的问题

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