ios

修改ios模拟器路径

As of Xcode 11 (released to beta to developers yesterday), we should locate the simulator runtimes located in /Volumes/*/Library/Developer/CoreSimulator/Profiles/Runtimes

I suggest you move them to that location on your spare drive. Doing so while CoreSimulatorService is running will probably confuse its state because we don’t currently handle runtimes vanishing from the root filesystem (we do handle them disappearing due to a disk eject through), so you will probably need to SIGKILL CoreSimulatorService after doing the move by running:

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService 2> /dev/null

If you don’t want to wait for Xcode 11, you can also just create a symlink from /Library/Developer/CoreSimulator/Profiles to /Volumes/MyHDD/Library/Developer/CoreSimulator/Profiles.

Command CodeSign failed with a nonzero exit code解决方案

Xcode10升级到Xcode11,在真机运行程序出现下面错误

许多博客说清除缓存然后电脑重启就可以解决,这些方案在此处不可行。

 

经过一番折腾,最终解决方案:

关闭Xcode,在钥匙串中找到下面这个证书删除,然后打开Xcode运行,可以成功运行。