iOS/tvOS playground fails with “Unable to find execution service for selected run destination”

后端 未结 6 850
盖世英雄少女心
盖世英雄少女心 2021-02-18 15:06

After migrating to XCode 7.1 I can not use playground with iOS and tvOS platforms. Only OS X works. Simplest playground code produces error message:

Una

6条回答
  •  臣服心动
    2021-02-18 15:49

    Ok, after some struggle, here's the solution.

    1. Clean up the folder ~/Library/Developer/CoreSimulator
    2. Restart the machine
    3. 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.

提交回复
热议问题