如何从命令行将 iPhone 应用程序部署到模拟器?

发布于 2024-07-29 08:08:11 字数 97 浏览 1 评论 0原文

我从命令行使用 xcodebuild 来编译 iPhone 应用程序的多个变体,但我无法弄清楚如何从命令行将这些构建部署到 iPhone 模拟器中。 有人可以启发我吗? 谢谢。

I'm using xcodebuild from the command line to compile several variations of an iPhone app but I've not been able to figure out how to deploy those builds into the iPhone Simulator from the command line. Could somebody please enlighten me? Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦纸 2024-08-05 08:08:11

获取开源“iphonesim”,它会为您完成:http://github.com/jhaynie/ iphonesim/

它很小,用 Objective C 编写,并且似乎在命令行中工作得很好。

Get the open source "iphonesim" and it'll do it for you: http://github.com/jhaynie/iphonesim/

It's small and written in objective C, and it seems to work fine from the command line.

月下凄凉 2024-08-05 08:08:11

这是很久以前的事了。 但如果有人有兴趣
[Simulator_installation_path]/iPhone\ Simulator -SimulateApplication [AppFolder_full_path]/[AppName].app/[AppName]

我的模拟器路径是:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS

This was a looong time ago. But if someone is interested
[Simulator_installation_path]/iPhone\ Simulator -SimulateApplication [AppFolder_full_path]/[AppName].app/[AppName]

My simulator path was:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS

木森分化 2024-08-05 08:08:11

看起来,使用 xcodebuild 的 -sdk iphonesimulator3.0 标志应该会生成 .sb 文件,但这似乎不起作用。 也许这是不可能的?

It would appear that using the -sdk iphonesimulator3.0 flag with xcodebuild should generate the .sb files, but this doesn't seem to work. Maybe it's not possible ?

柏林苍穹下 2024-08-05 08:08:11

本主题将告诉您如何手动执行此操作,您也应该能够自动化该过程:

我可以在没有源代码的情况下将应用程序安装到模拟器吗?

This topic will tell you how to do it manually, you should be able to automate the process as well:

Can I install an app to the simulator without the source code?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文