gpt4 book ai didi

ios - Swift 3.0 xCode 8 迁移 pod

转载 作者:行者123 更新时间:2023-11-28 16:11:06 24 4
gpt4 key购买 nike

我在使用 xCode 8 时遇到了一些问题。

  1. 我已经在 swift 3.0 sintax 中转换了我的 .xCodeproject
  2. 我已经安装了所有与 swift 3.0 兼容的 cocoapods

Here my pods

所以每个 pod 都需要旧的 swift 版本或者 xCode 返回同上错误或者 xCode 返回一些关于 pod 语法的错误。请帮助我。

最佳答案

要删除需要手动将旧版 swift 版本更改为 YES 任务的 pod,请将此脚本添加到您的 podfile。它将遍历您的 pod 并将其设置为使用 3.0 版本

 post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |configuration|
configuration.build_settings['SWIFT_VERSION'] = "3.0"
end
end
end

关于ios - Swift 3.0 xCode 8 迁移 pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39546378/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com