Jef*_*eff 5 xcode ios-simulator simctl
我试图删除模拟器,但它处于simctl delete不会删除它的状态.我从我能想到的所有地方删除了它,但在某处保留了对它的引用.
一,上市:
$ xcrun simctl list devices | grep 3B7
Apple Watch - 38mm (3B7135C5-40A3-40FB-A130-12ACB448EE5D) (Creating) (unavailable, runtime profile not found)
接下来,我的删除尝试:
$ xcrun simctl delete 3B7135C5-40A3-40FB-A130-12ACB448EE5D
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to delete device in current state: Creating
我接下来删除了设备目录,条目device_set.plist,甚至条目.default_created.plist.证明:
$ pwd; ls -l 3*
/Users/jeff/Library/Developer/CoreSimulator/Devices
ls: 3*: No such file or directory
$ grep 3B7 device_set.plist .default_created.plist ; echo Anything?
Anything?
但这没有帮助.它还在那里.
因此,如果不删除整个CoreSimulator/Devices文件夹,如何删除此损坏的设备条目?
Jer*_*oia 15
您在磁盘上删除了它,但CoreSimulatorService在此期间运行,并且不知道您破坏了它的权限; 0.
如果你sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService,它会重新启动而不会在下次启动时看到它.
另请注意,此特定错误已在Xcode 8中修复.您现在可以删除处于创建状态的不可用设备.