2017-04-26 62 views
0

如何从项目中提取IPA文件以在真实设备上运行它来检查功能。
我通过产品文件夹将其解压缩并进行压缩,但它在iPhone中显示此文件无法运行的错误。IPA文件提取

+0

什么样的错误? –

+0

使用iPad文件将项目文件制作成iTunes,但是当我们将iPhone与Mac连接并希望在iPhone中运行应用程序时,弹出窗口会出现文件无法打开的错误。有其他方法吗? – Hamza

+0

提取Ipa?你的意思是?你想建立一个档案,或者你想在iPhone上运行ipa?请简明扼要 – Arun

回答

1

要测试真实设备上的应用程序,您必须为应用程序开发和自定义配置文件。

要知道如何创建证书和配置文件,您可以检查此链接:App id, certificates and provisioning profile

然后供应配置文件设置为你的应用程序的目标。如果目前为止一切正常,那么通过在Xcode中选择产品 - >存档来创建存档并按照步骤操作。在此过程中打开管理器窗口时,点击导出,出现在窗口的右侧以提取IPA文件。

+0

如何获得adhoc配置文件? @Jitendra Solanki – Hamza

+0

@汉萨,请检查编辑答案 –

1
To test your app on real device you need a developer account,once you got a developer account just go to general on project target and enable automatic signing,it will create automatic provisional profile and certificate for you.i will let you know the steps below. 

1)Get developer account with 99 dollars per annum. 

2)Import your developer account by selecting Xcode->Preferences->Accounts and add your account by entering account name and password. 

3)Now goto general and enable automatic signing,it will register your device and create provisional profile with certificate automatically. 

4)Clean build and run your project with your device by connecting to Xcode. 

Enjoy..... 
0

你需要扭转工作。

1。您需要将.ipa扩展名更改为.zip

2。现在,您可以为IPA

的创建观看.app文件现在这个文件从的Windows拖动到您的设备>设备

的另一种方式。如果你想工作这个IPA文件,那么你需要创建IPA如下所示:

  1. 添加必要的配置文件并调整构建设置。
  2. 将设备设置为运行应用程序的目标。
  3. 构建产品。
  4. 转到Products-> yourAppName.app。右键单击并显示在查找器中。
  5. 将&拖放到itunes配置文件和二进制文件。
  6. 在iTunes中选择应用程序,然后右键单击以在Finder中显示。在那里你可以得到.ipa文件。