简体   繁体   English

仅使用真机无法在模拟器上运行 Xcode 项目

[英]Can't run Xcode project on Simulator only with real device

As you can see on the image I can't run my project on the simulator, it works only if I connect a real device.正如您在图像上看到的,我无法在模拟器上运行我的项目,只有在我连接真实设备时它才能工作。 Before this issue I've reinstalled my Xcode, but it should work, because the simulator is at the developer tools and it works perfectly when I change the actual user of my mac book.在此问题之前,我已经重新安装了我的 Xcode,但它应该可以工作,因为模拟器位于开发人员工具中,当我更改 mac book 的实际用户时,它可以完美运行。

(The project uses proper provisioning profile). (该项目使用适当的配置文件)。

在此处输入图片说明

Try 1尝试 1

If you renamed Xcode.app since first launch, the iOS Simulator becomes unavailable.如果您在首次启动后重命名 Xcode.app,iOS 模拟器将不可用。 This is mentioned in the Xcode 6.1 Release Notes:这在 Xcode 6.1 发行说明中提到:

Renaming Xcode.app after running any of the Xcode tools in that bundle may cause iOS Simulator to be no longer be available.在运行该包中的任何 Xcode 工具后重命名 Xcode.app 可能会导致 iOS 模拟器不再可用。 Either rename Xcode.app back to what it was when first launched or restart your Mac.将 Xcode.app 重命名为首次启动时的名称或重新启动 Mac。 (16646772) (16646772)

Try 2尝试 2

Click to target or project > Build Settings > Architecture > Supported Platforms : change to iOS单击目标或项目 > 构建设置 > 架构 > 支持的平台:更改为 iOS

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

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