English 中文(简体)
如何使用从X条码开始的衍生工具?
原标题:How to run iPhone emulator WITHOUT starting Xcode?

在我老的麦克斯温山上,我可以把“我们”划入光灯,而我自己将开始使用Pi-Pad的推器。

自那时以来,我不得不获得新的机器人狮子。 我为狮子安装了X码,我安装了优惠小组开发器的工具选择。

但“议会”选择不再有: 现在的唯一途径似乎是操作X条码,制造一个空洞的项目,然后发射带有操作选择的推器。

我搜索了因特网和Facebook,但没有任何帮助。

是否有任何人知道如何只管理狮子?

Update: In response to @ike_love thread below. that answer is not assured to work on all Yosemite machines.

“enterography

最佳回答

2. 绕过指挥线的最容易的方式:

  1. launch Xcode once.
  2. run ios simulator
  3. drag the ios simulator icon to dock it.

接下来,你想使用这个词,就在座标上点击了宇宙模拟器icon。

问题回答

假设你在<代码>/格式>上安装了X代码,则你可以从指挥线开始使用i Simulator:

$ open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app

(Xcode 6+):

$ open /Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app

您可以与您的桌面建立象征性的联系,使这一联系更加容易:

$ ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app ~/Desktop

(Xcode 6+):

$ ln -s /Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app ~/Desktop

如@JackHahoney所指出的,你还可以在<代码>~/bash_profile上添加一个<>alias:

$ alias simulator= open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De‌​veloper/Applications/iPhone Simulator.app 

(Xcode 6+):

$ alias simulator= open /Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app 

(Xcode 7+):

$ alias simulator= open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app 

Which would mean you could start the iPhone Simulator from the command line with one easy-to-remember word:

$ simulator

在XCode 7+ 地点现在

/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app

从指挥线开车

$ open -a Simulator

从终点站开始,你必须运行:

open -a Simulator

无需在指挥线上做任何事情。

简单使用光灯操作模拟器。

“闪光探测模拟模拟器”。</p

请见以下图像:“enterography

<><>Edit>>

现在,如果X条码的icon在码头上,你可以正确点击,形成你可以选择的菜单。 开放式发展工具,在子菜单中,你可以选择<条码>iOS Simulator,在不开放X条码的情况下打开模拟器!“enterography

You can get it to launch via spotlight if you create an Automator launcher for it:

  1. Open Automator.app
  2. Choose type of Application
  3. Select Actions > Library > Utilities > Launch Application
  4. Open the dropdown of applications that can be launched and choose Other
  5. You can t directly select the Simulator app because it s inside the Xcode.app package. So instead you ll have to navigate to it in a separate Finder window and drag it onto the file selector window. It will be at one of the following paths depending on your version of Xcode (oldest to newest):
    • /Applications/Xcode.app/Contents/Developer/iOS Simulator.app
    • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iOS Simulator.app
    • /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
  6. Finally, save this Automator app in your applications folder as iOS Simulator.app

“Create

为了给老兵们带来一个 n,你可以做如下工作:

  1. Right click iOS Simulator.app and choose Get Info
  2. Click the icon in the upper left corner and do Cmd-C to copy it
  3. Right click your Automator app and choose Get Info
  4. Click the icon in the upper left corner and do Cmd-V to paste

https://i.stack.imgur.com/xE6ge.png” alt=“Copy icon”/>

正如许多答复所表明的那样,解决这一问题有许多不同的方法。 并非所有这些问题都涉及我的第一个问题,似乎也是凯民的优先事项: 从Spotlight发射的能力。

这里的解决办法对我来说是好的,应当与任何专业顾问团X和XCode版本合作。 我在SOS X 10.11和XCode 7.3上进行了测试。

最初的建立确实需要启动XCode,但此后,你就不得不走到Simulator。

Setup

  1. Launch XCode
  2. From the XCode menu, select Open Developer Tool > Simulator
  3. In the dock, control (or right) click on the Simulator icon
  4. Select Options > Show in Finder
  5. While holding down Command and Option, drag the Simulator icon to the applications directory. This creates an alias to it.
  6. If desired, rename the alias from "Simulator" to "iOS Simulator". Whatever you name it is what it will show up as in Spotlight.

注:还有其他途径可以进入模拟仪表(步骤1-4)的位置,例如使用Go to Folder......,但需要了解模拟仪的位置。 既然这种方式已经从XCode的版本改为版本,那么无论这些变化如何,这种方式都应发挥作用。

Use

  1. Launch Spotlight (command-space, etc.)
  2. Type "simulator" or "ios" (if you renamed the alias).
  3. If necessary, use the down arrow to scroll to the Simulator alias. Eventually, spotlight should learn and make the alias the top choice so you can skip this step.
  4. Hit return

模拟器的位置已改为:

/Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app

It can no longer be found here: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app

Try below instruction for launching iphone simulator:

∗∗∗∗∗∗∗∗∗

上述解决办法对我来说在ZSH没有作用。 我需要躲避PiSimulator.platform的狗。 对我来说,这项工作是:

alias simulator="open /Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app"

这可能更具有活力:

alias simulator="open -a  iOS Simulator "

更为容易:

  1. Hit command + space, Spotlight Search will appear
  2. Type in iOS Simulator and hit return

Done。

- 后续行动

您仍可轻易通过<代码>iOS Simulator> 查询。

“entergraph

In the terminal: For Xcode 9.x and above

$ open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app

Xcode-beta 9.x

$ open /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app

最容易的方法是使用Spotlight搜索。 仅点击CMD+Space和搜索模拟器的类型。 与此类似:

“entergraph

在少数几秒中,将装上:

“entergraph

转而使用另一个装置 硬件-软件;

在硬件菜单下可以使用的冷却仪器很少,如方向改变、姿态、子、面孔、面孔、键盘或音频投入。

  1. Go into Finder.
  2. On the sidebar, click applications.
  3. Find Xcode in Applications.
  4. Right click Xcode by whatever settings you have (usually two finger click [not tap]).
  5. Click "Show Package Contents."
  6. Go into the Contents folder.
  7. Search simulator.
  8. Wait 30 secs for it to load.
  9. Scroll down and find iOS Simulator.
  10. You may drag this onto the dock for easier access.

In case you were trying to open multiple distinct simulators at once:

开放Simulator app,notXcode。

随后,Fil >> 开放式设备;> 选择性电离层;> 选择装置。

“在此处的影像描述”/

<分> 开放装置的位置在不同的X条码版本中有所变化,因此可能位于不同的。

我根据@trojanfoe的回答建立了一台自动探测器,以便你能够直接从你的Dock

刚从终点站开始指挥:

ios-sim  start

或,在<代码>~/.profile上添加,以节省以下几条主要内容:

alias ios="ios-sim  start"

无法确定马克斯·索菲克斯和X编码这一指挥系统的哪一种版本。 页: 1





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...