1.
shell打开
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
去https://github.com/devdawei/XcodeDeviceSupport下载放到这个目录
2.
open
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
修改文件权限
sudo chmod 777 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist
找到,并增加自己要加的ios版本
结束xcode进程
重新启动