ios 如何在 iPhone 模拟器上安装 ipa 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20440811/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 22:39:18  来源:igfitidea点击:

How to install ipa file on iPhone Simulator?

iosiphoneios-simulator

提问by Prasanth S

I need to install .ipa file on iPhone simulator.

我需要在 iPhone 模拟器上安装 .ipa 文件。

I tried to change the extension .ipa to .zip and extracted it.

我尝试将扩展名 .ipa 更改为 .zip 并将其解压缩。

And I got the Payload folder and moved the application inside to my iPhone simulators applications folder at:

我得到了 Payload 文件夹并将里面的应用程序移动到我的 iPhone 模拟器应用程序文件夹中:

 /Library/Application\ Support/iPhone Simulator/6.1/Applications/

Application appears on iPhone Simulator, But the application did't running. How to solve the problem then how to run the app.

应用程序出现在 iPhone 模拟器上,但应用程序没有运行。如何解决问题,然后如何运行应用程序。

回答by Martin R

The IPA archive (downloaded from iTunes, or generated with Project->Archive) contains the code compiled for the iOS device, which has an ARM processor.

IPA 存档(从 iTunes 下载,或使用 Project->Archive 生成​​)包含为具有 ARM 处理器的 iOS设备编译的代码。

The iOS Simulator, on the other hand, uses the Intel processor on the Mac.

另一方面,iOS 模拟器在 Mac 上使用英特尔处理器。

So there is no chanceto run the app from the ipa file in the Simulator.

所以没有机会从模拟器中的 ipa 文件运行应用程序。