简体   繁体   English

更新 Xcode 后显示错误的外部库 (pod)

[英]external library (pod) showing errors after updating Xcode

在此处输入图片说明

I've updated Xcode to the latest and all these errors came.我已经将 Xcode 更新到最新版本,所有这些错误都出现了。 Then I downgraded my Xcode, but the errors still there.然后我降级了我的 Xcode,但错误仍然存​​在。

  1. Open Pods project打开Pods项目
  2. Select Target of the pod with errors选择有错误的 Pod 的Target
  3. Open Build Settings tab打开Build Settings选项卡
  4. Search for Swift Language Version ( SWIFT_VERSION )搜索Swift Language Version ( SWIFT_VERSION )
  5. Set proper Swift version for the pod为 pod 设置正确的 Swift 版本
  6. Build your project again再次构建您的项目
  7. If build fails you set wrong Swift version, so repeat from 5如果构建失败,你设置了错误的 Swift 版本,所以从 5 开始重复
  8. If some other pod will generate errors of this kind repeat from 2如果其他 pod 会产生此类错误,请从 2 开始重复

Also, you may set some Swift version for Pods project itself, to set some default version.此外,您可以为Pods项目本身设置一些 Swift 版本,以设置一些默认版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM