如何在iPhone模拟器中安装iPhone应用程序 [英] How to install iPhone application in iPhone Simulator

查看:239
本文介绍了如何在iPhone模拟器中安装iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个mySample.app文件 - 由xcode开发的iPhone应用程序。

I have a mySample.app file - an iPhone application developed by xcode.

如何使用我的xcode运行此(仅mySample.app文件)应用程序?

How do I run this (only mySample.app file) application using my xcode?

推荐答案

请注意:此答案已过时,功能已从iOS模拟器中删除。

我刚刚发现你不需要将移动应用程序包复制到iPhone模拟器的文件夹中,就可以在模拟器上启动它,如论坛中所述。这样你就需要点击应用程序才能启动它,当你想进行测试并多次启动应用程序时,你需要很舒服。

I have just found that you don't need to copy the mobile application bundle to the iPhone Simulator's folder to start it on the simulator, as described in the forum. That way you need to click on the app to get it started, not confortable when you want to do testing and start the app numerous times.

有未记录的命令行参数适用于iOS模拟器,可用于此类目的。您正在寻找的是:-SimulateApplication

There are undocumented command line parameters for the iOS Simulator, which can be used for such purposes. The one you are looking for is: -SimulateApplication

启动YourFavouriteApp的示例命令行:

An example command line starting up YourFavouriteApp:

/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication path_to_your_app/YourFavouriteApp.app/YourFavouriteApp

这将启动您的应用程序,无需任何安装,至少可以使用iOS模拟器4.2。但是,您无法访问主菜单。

This will start up your application without any installation and works with iOS Simulator 4.2 at least. You cannot reach the home menu, though.

还有其他未发布的命令行参数,例如切换SDK。快乐寻找那些......

There are other unpublished command line parameters, like switching the SDK. Happy hunting for those...

这篇关于如何在iPhone模拟器中安装iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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