iOS/tvOS playground fails with Unable to find execution service for selected run destination
Ok, after some struggle, here's the solution.
- Clean up the folder
~/Library/Developer/CoreSimulator
- Restart the machine
- Try running an iOS Playground, it should work without problems now.
Note: In my case I renamed CoreSimulator
to CoreSimulator.old
, and after restart a new CoreSimulator
was auto-created (so, I just threw away the .old
one).
BTW, there is a file ~/Library/Developer/CoreSimulator/Devices/device_set.plist
with whole list of Simulators under /Root/DefaultDevices
. I think this is where the problem was coming from.
Error running playground. Unable to find suitable target device. (iOS Swift)
Try navigating to the Xcode Menu
Window >> devices (shift+cmd+2) a new window will pop up.
On the bottom left, add a new simulator, specifically one running on iOS 8.0 to the existing list.
Restart Xcode.
Swift Playground error - FBSOpenApplicationErrorDomain code =4
I tried commenting out most of my code and just having a print("Hello World") line, but that produced the same error as well. So I opened a new playground and copied my code into it. It runs now. Not a very satisfactory solution but at least it allows me to continue working. I assume my playground file had become corrupted.
Playground execution terminated because the playground process exited unexpectedly
A restart of the mac solves the problem. What causes the issue is still unknown.
ios8 playground editor not visible
I think, you accidentally changed the type to "Core Data Mapping Model" in "File Inspector".
Try this:
- Open "File Inspector" by
View
>Utilities
>Show File Inspector
(option+command+1) - Select
Default - Swift Playground
fromType
pulldown - "Force Quit" Xcode with option+command+esc.
Related Topics
Swift Safely Unwrapping Optinal Strings and Ints
Swift: Hashable Struct with Dictionary Property
Properly Using Firebase Cloud Functions and Stripe
How to Use a Value Type Object as a Reference Type
What Does "Constrain to Margins" Mean in Interface Builder in Xcode 6.0.1
Can Not Conform to Protocol by Creating Extension with Where Clauses
iOS Swift: Unsafemutableaddressor Crash on iOS 8
Anyobject Try Cast to Equatable
How to Play Avplayeritems Immediately
Bit Field Larger Than 64 Shifts in Swift
How to Create a Nsmutabledictionary in Swift
Closure Use of Non-Escaping Parameter - Swift 3 Issue
How to Check If Airpods Are Connected to Iphone
Adding a Custom Font to MACos App Using Swift
How to Convert Text to Speech for Osx in Swift Playground
Subclass Uiscrollview in Swift for Touches Began & Touches Moved
Alamofire with Custom Parameter Encoding for Swift Application