简体   繁体   English

我从应用程序商店安装了XCode 4.3,现在我无法启动XCode而无法运行iOS模拟器

[英]I installed XCode 4.3 from the app store, now I can't run iOS Simulator without launching XCode

I routinely need to run the iOS simulator, and I prefer to run it from Spotlight. 我经常需要运行iOS模拟器,我更喜欢从Spotlight运行它。

When I installed XCode 4.3 from the mac app store, it prompted me to remove the /Developer folder, which I accepted. 当我从mac app store安装XCode 4.3时,它提示我删除我接受的/ Developer文件夹。 Now Spotlight doesn't list the iOS Simulator app in the results so I assume it was deleted with /Developer.... 现在Spotlight没有在结果中列出iOS模拟器应用程序,因此我假设它已被删除/ Developer ....

How do I run the iOS simulator now? 我如何现在运行iOS模拟器? Thanks! 谢谢!

I'm not sure Spotlight will ever find it again, it's now embedded inside Xcode.app: 我不确定Spotlight会再次找到它,它现在嵌入在Xcode.app中:

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

I launched it once via Xcode and then opted to keep it in the dock. 我通过Xcode启动了一次,然后选择将其保留在扩展坞中。 Alternatively I guess you could try copying / symlinking it into the /Applications directory and see if spotlight picks it up. 或者我想你可以尝试将它复制/符号链接到/ Applications目录,看看聚光灯是否可以选择它。

The simulator is embedded in the Xcode app at: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications 模拟器嵌入在Xcode应用程序中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications

When it is running, right-click on the icon in the doc and select Options:Keep In Dock, then it is a click away. 当它运行时,右键单击文档中的图标并选择选项:保持在Dock中,然后单击即可。

The simulator is embedded in the Xcode.app bundle. 模拟器嵌入在Xcode.app包中。 From the iOS SDK ReleaseNotes: 来自iOS SDK ReleaseNotes:

Within Xcode, you can launch additional developer tools, such as Instruments and FileMerge, via the menu item Xcode -> Open Developer Tool. 在Xcode中,您可以通过菜单项Xcode - > Open Developer Tool启动其他开发人员工具,例如Instruments和FileMerge。 You can then pin the tool on your Dock for access when Xcode is not running. 然后,您可以将工具固定在Dock上,以便在Xcode未运行时进行访问。

Spotlight will probably not index it because it's in the bundle, but might index the link to it in the dock. Spotlight可能不会将其编入索引,因为它位于包中,但可能会将其链接指向Dock中的链接。 Otherwise try creating a symlink somewhere else. 否则尝试在其他地方创建符号链接。

Just wait until Spotlight reindexed. 等到Spotlight重新编制索引。 iOS Simulator is still a standalone program. iOS模拟器仍然是一个独立的程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我已经在xcode5中安装了iOS6模拟器,但是无法在iOS6模拟器上运行应用 - I have installed iOS6 simulator in xcode5, but I can't run app on iOS6 simulator 如何在XCode 6 iOS模拟器中运行/录制iOS应用程序? - How can I run / record an iOS app in the XCode 6 iOS Simulator? 无法在模拟器iOS 8 Xcode 6中运行应用程序 - Can't run app in the simulator iOS 8 Xcode 6 当我清理Xcode DerivedData时,无法在iOS Simulator中运行我的应用程序 - When I clean Xcode DerivedData I can't run my app in iOS Simulator 既然Xcode 9已经发布,我是否可以从Xcode 8.3.3提交和部署应用程序而无需更新到Xcode 9? - Can I submit and deploy app from Xcode 8.3.3 without updating to Xcode 9 now that Xcode 9 is out? 不用Xcode可以下载iOS SDK 4.3吗? - can I download iOS SDK 4.3 without Xcode? 升级到iOS 5.1和xcode 4.3,现在应用程序将无法安装 - Upgraded to iOS 5.1 and xcode 4.3, now app won't install 无法在 Xcode 10.2 中的模拟器上运行 iOS 应用程序 - Can't run iOS app on simulator in Xcode 10.2 是否可以通过Xcode在模拟器中安装iOS应用而无需立即启动它? - Is it possible to install an iOS app in the simulator through Xcode without launching it immediately? 如何在Xcode 4.5上安装iOS 4.3模拟器? - How do I install the iOS 4.3 Simulator on Xcode 4.5?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM