安裝xcode和ios模擬器: https://www.jianshu.com/p/0f5dd7da1aeaios
若是 xcode
xcversion simulators 命令中沒有你須要的版本,
1.那麼能夠在網上找到這個版本下載下來,而後複製到以下路徑中
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
2. 打開SDKSettings.plist文件,添加其餘版本的如圖所示;ruby
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk