【发布时间】:2017-04-01 00:04:26
【问题描述】:
我使用的是 xcode 8,它工作正常,但是当我尝试使用
重置模拟器时In the iOS Simulator, press iOS Simulator in the menu at the top of the screen,
and press 'Reset Content and Settings...'. This should clear the entire simulator.But it gives below error.
然后我尝试使用终端并得到相同的错误,如下所示
请提前帮我解决这个问题。
【问题讨论】:
-
确保您是系统管理员。同时清除所有派生数据
-
完整的错误是否提到了受影响的文件?
-
data的路径将是 ~/Library/Developer/CoreSimulator/Devices/[UDID]/data ...您应该检查权限是什么并弄清楚为什么不能删除它。 -
@GouravJoshi 是的,我是系统管理员,已经尝试清除派生数据。
-
我会首先检查上述文件的权限(如错误中所述),并可能尝试强制目录权限:
sudo chmod -R 775 ~/Library/Developer/CoreSimulator/Devices/。
标签: ios iphone ios-simulator xcode8 macos-sierra