Xcode 6 GM - Can't use playgounds

I recently uninstalled Xcode 5 and installed Xcode 6 GM on my Mac. I started a new iOS project in Swift and ran a series of XCT tests successfully.

To solve a simple coding problem (using the floor function) I created a playground file in the application. Unfortunately, it crashes every time I use it, with the following message "Aborting playground because playground process exited unexpectedly."

Restarting Xcode doesn't fix the issue. Also, after a restart, Xcode forgets everything that was specified in the "Open Recent ..." menu, even if it was before the restart.

I am assuming there are some basic Xcode tweaks that screw up. Any ideas appreciated.

+3


source to share


3 answers


I had the same problem and got these messages in a console app.

Blockquote Xcode [2092]: [MT] IDEPlaygroundEditor: An error occurred while trying to start the playground: Error Domain = IDEPlaygroundErrorDomain Code = 1 "An error occured while trying to communicate with the helper application. You may need to restart Xcode before the playgrounds can be restarted run. " UserInfo = 0x7fd580130350 {NSLocalizedDescription = An error occurred while trying to contact the helper application. You may need to restart Xcode before Playgrounds start again.}



Restarting Xcode didn't help, but restarting my mac solved the problem.

+1


source


Try it, change platform to "OS X" from the inspector to the right. and comments // the UIKit import . unknown issues related to simulator settings for playground in Xcode 7 beta.



0


source


Your error message:

Playground execution terminated because the playground process exited unexpectedly.

      

usually occurs due to a faulty code. You should probably post it if you want more help.

As for the second problem:

  • Open System Preferences .
  • Go to General (usually in the top section first).
  • Look down, there should be a setting called Recent Items .
  • Change it No to 15 (default value if I remember correctly).

What is it.


Based on your comment, I suggest changing import UIKit var x = 1

to import UIKit; var x = 1

.

-2


source







All Articles