- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
每次更新 Podfile 时,都必须修复此 SWIFT_VERSION 错误才能解决。
如何将pod和swift版本设置为唯一,这样每次更新pod时都不需要修复SWIFT_VERSION错误。
Error: SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0, 4.2. (in target 'paper-onboarding')
由于操作系统限制,X-Code 最多允许运行 swift 4.2。
Swift 5.0 将不支持,必须将其降至 4.2 版本才能兼容并在模拟器或设备上运行应用程序。
最佳答案
将此添加到 Podfile
中的 pod 定义下方。在{pod-name}
中插入你想要的pod并设置你需要的版本
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == '{pod-name}'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
end
关于ios - SWIFT_VERSION 每次 pod 更新时都会出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59591748/
Xcode 10.1 (10B61) 突然开始失败“SWIFT_VERSION 的值不能为空”这与 Value for SWIFT_VERSION cannot be empty 非常相似但是在经历了
我已经为 obj c 项目安装了 swift pod。我在尝试构建它时遇到此错误。 我已经完成了所有解决方案,例如删除派生数据、清理构建文件夹。 XCode 10 中也缺少 Swift Compile
我无法将我的 pod 的新版本推送到 CocoaPods 规范存储库。 运行 pod trunk push MyPod.podspec 会导致以下错误: [!] The Pod Specificati
尝试库 simple_permission,修复了 pod 错误,但出现了这个问题,不知道如何继续。 Build Settings里面没有设置swift版本,我试过加了,还是不行。 Launching
每次更新 Podfile 时,都必须修复此 SWIFT_VERSION 错误才能解决。 如何将pod和swift版本设置为唯一,这样每次更新pod时都不需要修复SWIFT_VERSION错误。 Err
我最近将 xcode 更新到版本 9。在此之前,在 Xcode 8.x 中,每当我使用 pod update 时,它都会显示一个更新代码,用于将代码转换为 Swift 3 并执行此操作解决错误。但现在
我有一个 2.3 版 swift 的应用。 当我尝试在 xcode 8 中运行并在build设置中设置“User Legacy Swift -> YES”时,它只给我 cocoapods 错误。 见下
我最近将 xcode 更新到版本 9。在此之前,在 Xcode 8.x 中,每当我使用 pod update 时,它都会向我显示更新代码,以将代码转换为 Swift 3 并执行此操作解决错误。但现在它
据我了解,用于您的 Pod 的 Swift 版本将是您项目的主要目标中指定的 Swift 版本。 我的项目设置了 SWIFT_VERSION 4.1: 但生成调试或发布 xcconfig 时,SWIF
我刚刚将我的一个项目从 Swift 2.3 转换为 Swift 3 并且 eventhoug 所有编译都很好并且一切似乎都在工作我不断收到以下警告... warning: target specifi
我正在尝试将 Cocoalumberjack 安装为 pod,但出现此错误: The ProjectName [Release] target overrides the SWIFT_VERSION
我刚刚完成了最后一次 Xcode 更新 (8.3),我收到消息: 需要为使用 Swift 的目标正确配置“Swift 语言版本”(SWIFT_VERSION)。使用 [Edit > Convert >
我正在构建一个 flutter 应用程序。一切都很好。然后我认为 dart 已升级,应用程序的构建突然失败并出现此错误: “Swift 语言版本”(SWIFT_VERSION) build设置必须设置
我正在尝试发布这个库 https://github.com/ankurp/Dollar使用以下命令 pod trunk push Dollar.podspec --allow-warnings --v
我正在将基于 Alamofire 的“NetworkFoundation”框架迁移到 Swift 5。Carthage 被用作依赖管理器, 购物车文件如下所示: github "Alamofire/A
我在纯 Objective C 项目中使用 Xcode 8.3 时遇到以下错误。 我无法找到解决方案,我的build设置中没有 swift 参数,我也无法在线找到任何解决方案。 有什么想法吗?几天前构
所以我只是在添加核心数据以更新我的应用程序以存储和获取一些信息后去构建我的应用程序,我得到了这个错误。 (我使用的是 XCode 9.2) The “Swift Language Version” (
自从我更新到 Xcode 8.2(GM 种子,来自 App Store)后,我一直卡在以下错误中: Use Legacy Swift Language Version” (SWIFT_VERSION)
我在继承的应用程序中收到此错误。 我不确定在不破坏应用程序的情况下我应该做什么。我被告知该应用程序开发的版本是 Swift 3.0。我还收到“单击更新以更改目标的build设置以使用最新的 Swift
目前我使用的是 xcode 10.1 版和 swift 4.2 版。我正在使用 CryptoSwift 库,当我尝试 carthage update 时,它无法构建并显示错误消息 SWIFT_VERS
我是一名优秀的程序员,十分优秀!