使用 carthage update遇到的问题

2022-02-22  本文已影响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
上一篇下一篇

猜你喜欢

热点阅读