xcode 在模拟器上运行 iOS 应用程序,无需构建应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7167730/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:48:11  来源:igfitidea点击:

Running iOS Application on Simulator without Building App

iosxcode

提问by ArtSabintsev

I was wondering if it was possible to 'Run' an Xcode Project on the simulator without having it 'Build the Source' first.

我想知道是否有可能在模拟器上“运行”一个 Xcode 项目而无需先“构建源代码”。

When I click the 'Run' button in Xcode 4.0.2, it builds first, then runs it.

当我单击 Xcode 4.0.2 中的“运行”按钮时,它首先构建,然后运行它。

Is it possible to run without building? If it's possible, how do you do it?

是否可以不建造就运行?如果可能,你会怎么做?

Edit:This may sound like a strange question, but I have acquired an Xcode project from a third party who is telling me to Run the code without Building it to get it running on the simulator. Not sure how to do that.

编辑:这听起来像是一个奇怪的问题,但我从第三方那里获得了一个 Xcode 项目,该项目告诉我运行代码而不构建它以使其在模拟器上运行。不知道该怎么做。

回答by Shawn

Not sure if this is what you are looking for but.

不确定这是否是您要找的,但是。

Go to Product -> Perform Action -> Run Without Building

转到产品 -> 执行操作 -> 无需构建即可运行

回答by Oliver Pearmain

You have three options:

您有三个选择:

  • ctrl-cmd-r
  • hold ctrland click the run (play icon) button
  • Within menu goto Product> Perform Action> Run Without Building
  • ctrl-cmd-r
  • 按住ctrl并单击运行(播放图标)按钮
  • 在菜单中转到Product> Perform Action>Run Without Building

回答by Ricardo Anjos

In XCode 10 right now is ^+Cmd+R

现在在 XCode 10 中是 ^+Cmd+R

回答by surfasb

AFAIK, this is how every IDE works. You can't run the program until it is at least built once, whether implicitly or explicitly.

AFAIK,这就是每个 IDE 的工作方式。你不能运行程序,直到它至少被构建一次,无论是隐式还是显式。

回答by nettz

Objective C is a compiled language. The Code cant be interpreted

Objective C 是一种编译语言。代码无法解释