Xcode iOS模拟器不会加载新项目 [英] Xcode iOS Simulator does not load new project

查看:99
本文介绍了Xcode iOS模拟器不会加载新项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当时正在使用xCode开发iOS应用程序,并且我在完美地使用了模拟器.昨天,我不得不创建一个新项目,并在输入一些代码后发现,单击运行"时,应用程序会进行编译,链接,但是模拟器永远不会启动.并且停止被禁用.我尝试打开和关闭iOS sim卡.向后打开旧项目将显示模拟器,但是切换到新项目后,什么也没有发生.有想法该怎么解决这个吗? 我正在使用单视图应用程序.

I was working on an iOS app in xCode and I was perfectly using the simulator. Yesterday I had to create a new project and after putting some code I found out that when clicking Run, the app compiles, links, but then the simulator never starts. And stop is disabled. I tried with both iOS sim on and off. Opening the old project back shows the simulator but after switching to the new one, nothing happens. Any ideas on how to fix this? I am using a Single-View app.

推荐答案

问题已最终解决.
在运行",停止"按钮附近,单击应用程序名称,例如 Demo ,然后单击编辑方案". 现在,单击 Info ,然后将 Executable 设置为您的应用可执行文件,通常在默认位置的唯一子文件夹中.点击确定,然后随意运行模拟器.现在它将同样有效.

The problem has been fixed eventually.
Near the Run, Stop buttons, click the app name, for example Demo and then click Edit Scheme. Now click Info and then set the Executable to your app executable, usually in the only subfolder of the default location. Click Okay and feel free to run the simulator. It will now work just as well.

这篇关于Xcode iOS模拟器不会加载新项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆