使用 carthage update遇到的问题

问题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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容