I have followed loads of questions here but nothing seems to work.
I am using Swift3
in a Playground
. Running on El Capitan and Xcode 8.1.
To finally get the program working I used.
devices = NSArray(contentsOfFile: path) as! [AnyObject]
The issue with playground continuously running was solved by going to activity monitor and force quitting the process named com.apple.coresimulator which was identified as not responding. After doing this the playground ran instantly.