简体   繁体   English

从终端在模拟器中安装内置的iOS App?

[英]Installing built iOS App in simulator from terminal?

We build an app through the terminal with xcodebuild and also want to install it in the simulator using the terminal. 我们使用xcodebuild通过终端构建一个应用程序,并且还希望使用该终端将其安装在模拟器中。 Any advice on this? 有什么建议吗? Seems tricky. 似乎很棘手。

(Any reason you're just not using the default xcode way?) (是不是因为您没有使用默认的xcode方式?)

Heavy mate. 重队友。 I would bet there's an easy way to do it (I'd imagine) 我敢打赌,有一种简单的方法可以做到(我想)

You could make a simple ssh client in Objective-C and run it on the simulator then simply copy the necessary files with said program. 您可以在Objective-C中创建一个简单的ssh客户端,并在模拟器上运行它,然后使用上述程序简单地复制必要的文件。 Since it's not going through Apple, you'll probably have a pretty easy time with it. 由于它没有通过Apple,您可能会度过一段轻松的时光。

Oh and it went unanswered here 哦, 这里没有答案

The forum thread, http://forums.macrumors.com/showthread.php?t=547557 , seems to have advice which works: 论坛线程http://forums.macrumors.com/showthread.php?t=547557似乎有一些可行的建议:

Look inside your ~/Library/Application Support/iPhone Simulator/User/Applications/ directory and see what happens inside this directory when you install and run apps using XCode, and also when you delete apps using the Simulator. 在〜/ Library / Application Support / iPhone Simulator / User / Applications /目录中查找,并查看在使用XCode安装和运行应用程序以及在使用Simulator删除应用程序时此目录中发生的情况。

You can run the Simulator by itself (without starting XCode). 您可以单独运行模拟器(无需启动XCode)。

If you start the Simulator, delete an app, quit the Simulator, put back copies of the files that were deleted from the support directory, and restart the Simulator, the app will reappear in the Simulator. 如果启动模拟器,删除应用程序,退出模拟器,放回从支持目录中删除的文件副本,然后重新启动模拟器,该应用程序将重新出现在模拟器中。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM