简体   繁体   English

安装Beta后缺少Xcode模拟器吗?

[英]Xcode Simulators Missing After Installing Beta?

I installed xcode beta as I wanted to push an app to my iphone on 10.1 beta, so needed xcode beta. 我安装xcode beta是因为我想将应用程序推送到10.1 beta上的iphone,因此需要xcode beta。

The xcode beta is being super flakey and I wanted to go back to xcode 8 current build. xcode beta超级强大,我想回到当前的xcode 8版本。 However now all the emulators have vanished from the list near the play button. 但是,现在所有仿真器均已从播放按钮附近的列表中消失。

If i go to Window - Devices, they are all still listed as you would expect... 如果我转到“窗口-设备”,它们仍然按照您期望的方式列出...

So i cant see why theyve hidden themselves from view/use, but I cant get them back! 所以我看不到为什么他们把自己隐藏起来以免被查看/使用,但是我无法让他们回来!

Cheers for any help here 在这里为任何帮助加油

While you can have multiple copies of Xcode installed at the same time, you cannot run them concurrently. 虽然可以同时安装多个Xcode副本,但不能同时运行它们。 The last one to launch is the one that will be able to use the simulator services. 最后一个启动的程序将能够使用模拟器服务。

You should quit your Xcode 8 and then relaunch it. 您应该退出Xcode 8,然后重新启动它。

Also note that if you open Console.app from macOS Sierra, it will use the simulator services from whatever Xcode is selected via xcode-select. 还要注意,如果从macOS Sierra打开Console.app,它将使用通过xcode-select选择的任何Xcode的模拟器服务。 If that doesn't match your running Xcode, you'll loose simulator services when opening Console.app. 如果这与您运行的Xcode不匹配,则在打开Console.app时将失去模拟器服务。

Check your iOS deployment target. 检查您的iOS部署目标。 It might be that you're app is set to run on iOS 10.1, but you only have sims for iOS 10. 可能您的应用程序设置为在iOS 10.1上运行,但是您只有适用于iOS 10的Sims。

Go to your project file and change deployment target, to for example - iOS 10. 转到项目文件,然后将部署目标更改为例如iOS 10。

Let me know how you get on. 让我知道你是怎么办的。

Check xcode-select -p . 检查xcode-select -p

If it says /Applications/Xcode-beta.app/Contents/Developer/ , then simply run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/ . 如果显示/Applications/Xcode-beta.app/Contents/Developer/ ,则只需运行sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/ All your simulators will be back in your non-beta Xcode. 您所有的模拟器都将恢复为非Beta Xcode。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM