【问题标题】:Playground execution failed:操场执行失败:
【发布时间】:2015-11-30 02:10:04
【问题描述】:

我正在尝试使用 xcode 7 中的 Playground 来测试一些代码,但由于某种原因它无法运行。

这是我遇到的错误

Playground 执行失败:/var/folders/q6/zswv_4wj16zbckfbdtl9lmyh0000gp/T/./lldb/11352/playground14.swift:1:8:错误:模块文件的最小部署目标是ios9.0 v9.0:/var/文件夹/q6/zswv_4wj16zbckfbdtl9lmyh0000gp/T/com.apple.dt.Xcode.pg/auxiliarymodules/C2294E15-2E60-47B3-8A0B-DABB2C0C3D88/MyPlayground_Sources.framework/Modules/MyPlayground_Sources.swiftmodule/x86_64.swiftmodule 导入 MyPlayground_Sources

这是我正在尝试执行的非常简单的代码。

class testClass{
    var property = "some property"
}
var test = testClass()
test.property

模块文件最小部署目标是ios9.0是什么意思?

【问题讨论】:

  • 尝试重启 Xcode。
  • 试过了,没用。

标签: ios xcode swift2 xcode7-beta6


【解决方案1】:

我想我找到了问题所在。

我在 Xcode 7 中打开了一个 Xcode 6 Playground 文件。

当我在 Xcode 7 中创建一个新的 Playground 时,它运行良好。

【讨论】:

  • 有趣...供将来参考,Xcode 6 不能很好地与 Xcode 7 配合使用。
猜你喜欢
  • 1970-01-01
  • 2019-06-25
  • 1970-01-01
  • 1970-01-01
  • 2019-09-30
  • 1970-01-01
  • 2023-03-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多