菜鸟教程小白 发表于 2022-12-12 15:49:33

ios - 无法仅使用真实设备在模拟器上运行 Xcode 项目


                                            <p><p>正如您在图片中看到的那样,我无法在模拟器上运行我的项目,它只有在我连接真实设备时才有效。在这个问题之前,我已经重新安装了我的 Xcode,但它应该可以工作,因为模拟器位于开发人员工具中,并且当我更改我的 mac book 的实际用户时它可以完美运行。</p>
<p>(该项目使用正确的配置文件)。</p>
<p> <img src="/image/VwEj5.png" alt="enter image description here"/> </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>试试 1</p>
<p>如果您在首次启动后重命名 Xcode.app,iOS 模拟器将不可用。 Xcode 6.1 发行说明中提到了这一点:</p>
<blockquote>
<p>Renaming Xcode.app after running any of the Xcode tools in that bundle may cause iOS Simulator to be no longer be available. Either rename Xcode.app back to what it was when first launched or restart your Mac. (16646772)</p>
</blockquote>
<p>试试 2</p>
<p>单击以定位或项目 > build设置 > 架构 > 支持的平台:更改为 iOS</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 无法仅使用真实设备在模拟器上运行 Xcode 项目,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/31366597/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/31366597/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 无法仅使用真实设备在模拟器上运行 Xcode 项目