Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Phonegap (2.7) 在 Xcode (4.6.2) 上运行一个项目。
我在终端窗口中使用 create 命令创建项目,然后当我在 Xcode 中打开它并单击左上角的运行按钮时,它会成功构建,但不会启动模拟器。此外,当我单击项目选项卡时,“运行”按钮不是一个选项。
关于为什么 Xcode 不让我运行这个项目的任何想法?
请注意,我可以完美地在 Xcode 中运行其他项目,只是这个我遇到了困难。
当您使用 create_project 脚本并第一次在 XCode 中打开项目时,CordovaLib 子项目被选为 Run 方案,因此它可以构建 CordovaLib,但没有什么可运行的。这让我几次感到困惑,让我想知道为什么我的项目构建但没有运行,直到我记得查看该计划。
在 Xcode 顶部的主工具栏上,确保将 Scheme(运行和停止按钮旁边)设置为您的项目名称(父项目)而不是“CordovaLib”(子项目)。该方案应该读为“我的项目 > iPhone”而不是“CordovaLib > iPhone”。