Xcode:操场执行失败:

时间:2018-12-04 08:42:03

标签: ios swift xcode swift-playground xcode10

操场执行失败:

enter image description here

error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x14eee).
The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x14eee)
    frame #0: 0x0000000000014eee
    frame #1: 0x0000000123c284b2 PlaygroundLogger`playground_logger_initialize + 18
    frame #2: 0x00000001235ba23d $__lldb_expr2`main at playground1-901e96..swift:8
    frame #3: 0x000000010dadc5f0 MyPlayground`linkResources + 304
    frame #4: 0x000000010f71262c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
    frame #5: 0x000000010f711de0 CoreFoundation`__CFRunLoopDoBlocks + 336
    frame #6: 0x000000010f70c654 CoreFoundation`__CFRunLoopRun + 1284
    frame #7: 0x000000010f70be11 CoreFoundation`CFRunLoopRunSpecific + 625
    frame #8: 0x00000001173191dd GraphicsServices`GSEventRunModal + 62
    frame #9: 0x000000011371281d UIKitCore`UIApplicationMain + 140
    frame #10: 0x000000010dadc6bd MyPlayground`main + 205
    frame #11: 0x0000000110e5a575 libdyld.dylib`start + 1

1 个答案:

答案 0 :(得分:1)

我经历了几种不同的方式来关闭并重新启动程序,该程序最终对我有用,当我按以下步骤尝试时,它可以工作:

  1. 文件->关闭“ Name.playground”
  2. 文件->关闭游乐场
  3. 退出Xcode
  4. 重新打开Xcode

也进入了fileInspector内部,我去了Playground Settings,并将平台选择为“ macOS”。

感谢大家的帮助。