简体   繁体   English

如何从构建目标中删除模拟器?

[英]How can I remove the simulators from my build targets?

In Xcode, I have a project that uses a library only built for the device. 在Xcode中,我有一个项目,该项目使用仅为设备构建的库。

I now run into the issue whenever I disconnect my phone and reconnect it, Xcode wants to build for a simulator, which I don't want. 现在,每当我断开手机并重新连接时,我都会遇到这个问题,Xcode想要为模拟器构建,这是我不想要的。

Is there a way to exclude the simulators from the build targets list? 有没有一种方法可以将模拟器从构建目标列表中排除?

It's not project specific but from the 'Devices' window you can remove a simulator from the run destinations list. 它不是特定于项目的,但是可以在“设备”窗口中从运行目标列表中删除模拟器。 Simply right click on one and you'll see 只需右键单击一个,您就会看到

设备上下文菜单屏幕截图

You'll have to do it to all of your installed simulators, but you can remove them. 您必须对所有已安装的模拟器执行此操作,但是可以将其删除。

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

相关问题 我现在从Mac中删除了所有IOS模拟器,我无法添加任何一个 - I removed all the IOS simulators from my mac now I can't add any one 为什么我不能为某些特定的iOS模拟器构建? - Why can't I build for some specific iOS simulators? 如何在我的iOS模拟器上自动安装自定义CA根证书以进行测试? - How can I automatically install a custom CA root certificate on my iOS simulators for testing? xCode升级缺少模拟器。 我如何使用本地存储的模拟器? - xCode upgrade missing simulators. How can I use locally stored simulators? 如何让我的 fastlane build (gym) 具有多个目标以查找我的配置文件 - How do I get my fastlane build (gym) with multiple targets to find my provisioning profiles 升级我的Mac后,无法再为iOS模拟器构建 - Can't build for iOS simulators any more after upgrading my mac 架构x86_64的未定义符号-我可以在设备上构建和运行,但不能在模拟器上运行 - Undefined symbols for architecture x86_64 - I can build and run on devices, but not for simulators 如何在 Xcode 14 中管理和删除模拟器? - How to manage & remove simulators in Xcode 14? 我如何从表格视图中删除空单元格 - How i can remove the empty cells from my table view 如何从iOS应用中删除crashlytics? - How can I remove crashlytics from my iOS app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM