xcode - 如何修复 "SWIFT_VERSION ' 3. Xcode 10.2 中的 0' is unsupported, supported versions are: 4.0, 4.2, 5.0"错误?

标签 xcode swift3 xcode10.2

我正在尝试运行从应用程序下载的应用程序,尝试在 Xcode 中打开并出现错误:

" Showing Recent Messages
:-1: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'SimpleWeather')"

Screenshot added

最佳答案

在项目中选择目标 'SimpleWeather' 并更改语言版本 Target->build setting -> Swift compiler language -> select 5, 4.2 etc

image of build setting for changing compiler language

关于xcode - 如何修复 "SWIFT_VERSION ' 3. Xcode 10.2 中的 0' is unsupported, supported versions are: 4.0, 4.2, 5.0"错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56125764/

相关文章:

c++ - macOS 中的 CMake,预编译头文件 (.pch) 支持

iphone - 在现有屏幕上显示小 View /对话框的最佳方式?

cocoapods - 代码 : Failed to render and update auto layout status for UIView: the agent crashed

ios - Xcode 测试记录已禁用,表示 "At least one test should be selected"

iphone - 这是否高效 - 向每个 UITableViewCell 添加手势识别器

ios - 如何以编程方式将图像设置为在每个设备上具有相同的相对大小和位置?

ios - 如何将 ios 应用程序连接到树莓派(应用程序代码)?

ios - swift 中的 URL 编码

cocoapods - 更新到 Xcode 10.2 后如何修复 "Bus error 10"

ios - 将按钮添加到左侧导航 Controller iOS 4