2017-04-26 59 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文件。