this is almost default playground, i added the print statement, yet playground still
import UIKit
var str = "Hello, playground"
print(str)
"Playground execution terminated because the process stopped unexpectedly."
this is almost default playground, i added the print statement, yet playground still
import UIKit
var str = "Hello, playground"
print(str)
"Playground execution terminated because the process stopped unexpectedly."
I have the same problem.
Except, those Playgrounds that are OS X based work and those that are iOS based do not.
/shrug I do not have a solution.
OK, just as a data point, I ran Xcode 7.2b4 on my machine (OS X 10.11.1), created an iOS playground, pasted your code into it, and it worked just fine. So clearly this problem is not universal, rather it’s somehow related to your environment.
Did you, perchance, move or rename Xcode 7.2b4 (or any of its parent directories) after running it for the first time. IIRC there’s a warning not to do that in the release notes.
Beyond that, I recommend the standard debugging steps:
try it as a different user
try it on a different machine
try it on a fresh install of OS X (I have a VM set up for this sort of testing)
Also, I haven’t been following your saga closely so I’m not sure if you filed a bug about this already. If not, you should do so. And please post your bug number, just for the record.
Share and Enjoy
—
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
I can confirm this.
Thanks for help.
After xcode finishes installing, i immediately change the name as usually i have several beta versions and non-beta versions of xcode. After the change I don't touch it, I do however point the command line to the latest beta version.
I also have the beta version installed on a remote drive which has the same playground issue, same condition, install, change name, don't touch it unless adding a simulator.
bug report
23791957
installed xcode 7.2 removed all beta versions, playground still exits and will not run.
iOS broken
OSX works
tvOS work
there are no issues running 7.1.1. what's the difference in ENV?
both point to the same set of command line binaries
Xcode 7.2 (7C68)
/Applications/Hacks/Xcode.7.2.0.app
it's getting serious now, i need to get this issue resolved, i updated the bug report.
i just uploaded a system dump of sysdiagnose com.apple.dt.Xcode.Playground crashing a couple of times
Installed xCode 7.2 yesterday. Added the 9.1 simulator and 9.2 documentation. Any - even one with just 'import UIKit" - iOs playground now fails with "Playground execution terminated because the process stopped unexpectedly.". Did not try to run a playground before downloading the 9.1 simulator.
No useful information other than to say "me too".
Saw the same thing. Tried completely uninstalling Xcode 7.2, but no luck. Using it as a different user didn't show the same behavior. The user I was having this behavior produced the following logs in Console:
12/13/15 7:04:37.000 PM kernel[0]: Sandbox: MyPlaygroundpls(43677) deny(1) file-read-data /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.frameworkOnce I removed all simulators, issue went away. I tried adding back 9.1 simulator and the issue came back. Trying to add back all other simulators now to see if any of them bring the issue back.
I'm using Xcode 7.2 (7C68). I'd solve the problem by changing the entry of the runtime value from com.apple.CoreSimulator.SimRuntime.iOS-9-1 to com.apple.CoreSimulator.SimRuntime.iOS-9-2. I'd changed it in the device.plist. In ~/Library/Developer/CoreSimulator/XCPGDevices/ is one or more folder with a UUID as name. In one of this folders is the current device.plist.
Since I installed Xcode 7.2 I have the same issue with playgrounds. Tried completely reinstalling 7.2 with same results. Have only the 7.2 version installed. Does anyone know if Apple has responded to this issue?
Absolute minimum playground fails with "Playground execution terminated because the process stopped unexpectedly."
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
Terminal says "Welcome to Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81)"
Got rid of this problem by going to Window=>Devices. There I deleted all devices on 8.2 and 8.4 (just select them and press backspace/delete). I still kept 9.1 and 9.2.
i just tried Xcode 7.3 beta and still the same
iOS broken
OSX works
tvOS work
i'll try some of the other solutoins posted.
i also moved all of the old DeveloperPorta*.db less Xcoce 7.0
removed all devices, 8.0.2 to 8.3
xcode 7.1.1 still works with playgrounds.
all of my devices are ios 9.0 or greater but i think previous versions of xcode may have left some around somewhere that don't show up.
in the device_set.plist i removed all references to previous ios<9 and removed simulators
i tried a playground but it crashes on just opening the simple print string.. ugh....
and these were devices that old references to ios8.* so these were moved to a different Volume
23BDC714-9408-4AF2-AD17-EAD46D5A5337
9AE37028-B9D8-452A-8E0F-FA4DC844FD13
277B20E6-CACA-4398-8BC5-4E0B36789C44
A248F87C-162C-49F2-939D-217BEBFA3111
34C97804-C59C-4DCC-A503-422274EA08C9
BC96A07E-C611-4478-A6B2-818BC6F1B09E
3B97A196-A352-49DD-BB3F-56BCA50D939F
DBE46403-EC5A-4EAD-864C-6881C7A9758E
3C6BCC3D-FFA9-46E6-BC76-4DFD1B05CB4D
DD801BD7-F584-42D2-9C21-F4E11665B38A
4D56AFA8-F6C0-477D-93A4-84315B7A4244
E085AAEF-6CA0-434A-9AF6-23CB62589101
6904CE0C-BB94-4EF4-BE2D-8B89BEDB3117
E2889DFA-2941-4F22-80C0-3C1EA32ADFE8/
7CF46194-A615-4BDD-8741-5C349ED0DD6C
F268A376-6E02-45AE-BF7E-9A90E64C879E
7D6F89F5-B898-42D9-94C8-CE8A0EE68E05
F8831FE7-BD33-4A35-81E6-166D8FDF90D8
8C581F07-1857-4954-89C9-0220FD4195BD
90362451-3219-4F74-96E0-D68DF4601032
i deleted all of these
-----stuff deleted from device_set.plist------------
<key>com.apple.CoreSimulator.SimRuntime.iOS-7-1</key>
<dict>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-2</key>
<string>42A0CC3D-D16F-40B1-B6D0-88C6A8D0A570</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Air</key>
<string>EDF03B94-1DC4-49D6-A237-0B227CD12976</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Retina</key>
<string>E0352CE2-2948-4D62-B8BF-BB58D3CAEB7C</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-4s</key>
<string>59FCDD07-A43E-4D3F-A2B3-32607BE99FB2</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5</key>
<string>ABAD4919-072F-498C-A76C-808DAC77B77C</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5s</key>
<string>6D9722A2-61F0-4033-A2EF-284591350DF8</string>
</dict>
<key>com.apple.CoreSimulator.SimRuntime.iOS-8-0</key>
<dict>
<key>com.apple.CoreSimulator.SimDeviceType.Resizable-iPad</key>
<string>4B5BEEE4-1DA3-4304-B46A-7F84FF94E839</string>
<key>com.apple.CoreSimulator.SimDeviceType.Resizable-iPhone</key>
<string>77EDAF72-C12F-47E5-9554-BA87ECD28787</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-2</key>
<string>FC05CC72-5360-40F1-B194-FAC86993EB27</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Air</key>
<string>C8B87CA6-17A3-4DFA-AE81-5A11343DBD74</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Retina</key>
<string>B3EA73C3-4610-4A73-964F-5836D61C6448</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-4s</key>
<string>11F006D5-FF5A-47E8-BDBB-1A4B08C74174</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5</key>
<string>1B9F5890-D5E9-4645-9414-56469EDE154D</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5s</key>
<string>06F36BA6-EC93-422B-B53C-6225D2AE39B1</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-6</key>
<string>9FBB28D1-6F4B-4B98-8123-BF6FB005C678</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus</key>
<string>EFD9C4B1-4AB5-4492-B5C6-BBEC620E428D</string>
</dict>
<key>com.apple.CoreSimulator.SimRuntime.iOS-8-1</key>
<dict>
<key>com.apple.CoreSimulator.SimDeviceType.Resizable-iPad</key>
<string>59CEA67A-79A9-46D0-9EC7-90EAACCCD2F6</string>
<key>com.apple.CoreSimulator.SimDeviceType.Resizable-iPhone</key>
<string>77C1ED3E-2B2F-4387-BD92-223BCAACE4EA</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-2</key>
<string>14F962E2-6307-42D3-9A46-134503EC661B</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Air</key>
<string>945D1DC0-9403-4893-B0D6-83CEF7AE28B2</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Retina</key>
<string>31F166DF-7904-439F-8F94-D73221AB803B</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-4s</key>
<string>A05904D9-A70F-45DA-9966-BFB24B3558ED</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5</key>
<string>5CD55BF8-06C4-4D4B-8C22-855B57E26E92</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5s</key>
<string>CE196EEC-3D1E-4F4D-B7B4-6A2791D255A7</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-6</key>
<string>958EDF31-C908-4E95-9207-82123C98B3D1</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus</key>
<string>8FB8CF1E-B36C-4EDE-B472-24A7DE67F5D7</string>
</dict>
<key>com.apple.CoreSimulator.SimRuntime.iOS-8-2</key>
<dict>
<key>com.apple.CoreSimulator.SimDeviceType.Resizable-iPad</key>
<string>3C4436A5-D3EB-498A-BC55-AB8B370715CC</string>
<key>com.apple.CoreSimulator.SimDeviceType.Resizable-iPhone</key>
<string>DFE8DD40-D070-4346-B171-7DB0EA718C24</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-2</key>
<string>A4307FF3-015D-4319-BE28-5522BFBF9947</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Air</key>
<string>0B5376E8-6594-4E48-97DF-CA116E5E31D9</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Retina</key>
<string>0A830B21-C89F-403F-B2C9-90C6FE0F427D</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-4s</key>
<string>DE021E29-36E5-4293-91A6-01F90C49F820</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5</key>
<string>3B143254-A08C-4026-B0C8-43442877D3E3</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5s</key>
<string>160ECF08-9544-4A06-A9F6-990BF03AFCA9</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-6</key>
<string>ECE8FE75-6943-42D3-9E85-C265D9A8FB35</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus</key>
<string>6CC0DFF8-52F5-4BAB-9A5D-4659073E4A62</string>
</dict>
<key>com.apple.CoreSimulator.SimRuntime.iOS-8-3</key>
<dict>
<key>com.apple.CoreSimulator.SimDeviceType.Resizable-iPad</key>
<string>1C1C2E9C-71FA-4829-A8D2-6B380E80AF08</string>
<key>com.apple.CoreSimulator.SimDeviceType.Resizable-iPhone</key>
<string>744AD1AF-6C65-4774-A143-1449F8855849</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-2</key>
<string>9D14514F-CD07-4BC2-AC73-287DC20AB535</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Air</key>
<string>552DB9B9-E547-41BA-8DDF-43C7B32054DB</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPad-Retina</key>
<string>3B7484E0-915C-4620-AC44-026FFC7ABDF3</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-4s</key>
<string>81D23CE5-2389-4142-A7D0-A26BD5EFF6A3</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5</key>
<string>9EF75F0E-A60A-40DD-B7EE-B8EA75D4BD69</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-5s</key>
<string>9CF1F639-EC20-4370-BF5F-B29279441125</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-6</key>
<string>4E57BA24-1577-4110-A3F4-83168E6D75B7</string>
<key>com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus</key>
<string>934978BB-4C28-4960-89F5-9C6CBD55C003</string>
</dict>
it took drastic steps ut i got the xcode 7.3 beta playground to work. i couldn't track down why the device plist was not accepting my changes, so i ended up nuking the entire ~/Library/Developer but when i restarted Xcode, it re-created the directory, so each Xcode version maintains it own copy somewhere in its structure.
here's how to get it to work
i copied the developer lib to an external disk and unmounted the disk so Xcode couldn't search and find it, it has all of your settings, colors schemes
nuke ~/Library/Developer
nuke Xcode*
installed fresh Xcode7.3beta
bam! playgrounds work
Still broken in XCode 8