2016-06-08 44 views
7

我有一款應用程序,可以通過S3存儲桶使用企業分發下載,它首次失敗並顯示正在加載,但當我使用配置實用程序手動安裝證書時將設備連接到計算機,同一網站鏈接開始工作。我正在使用Jenkins創建構建。無法在iOS設備上首次安裝企業內部分發應用程序

證書沒有自動安裝,我按照蘋果標準使用清單。我的清單文件的內容如下:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"  "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
<key>items</key> 
<array> 
    <dict> 
     <key>assets</key> 
     <array> 
      <dict> 
       <key>kind</key> 
       <string>software-package</string> 
       <key>url</key> 
       <string>https://dev-ios-builds.mycompany.com/AppName-1.0-56-2016-06-07.66.ipa</string> 
      </dict> 
      <dict> 
       <key>kind</key> 
       <string>display-image</string> 
       <key>needs-shine</key> 
       <true/> 
       <key>url</key> 
       <string>https://dev-ios-builds.mycompany.com/images/Icon.png</string> 
      </dict> 
      <dict> 
       <key>kind</key> 
       <string>full-size-image</string> 
       <key>needs-shine</key> 
       <true/> 
       <key>url</key> 
       <string>https://dev-ios-builds.mycompany.com/images/iTunesArtwork.png</string> 
      </dict> 
     </array> 
     <key>metadata</key> 
     <dict> 
      <key>bundle-identifier</key> 
      <string>com.companyname.appname.dev</string> 
      <key>bundle-version</key> 
      <string>1.0</string> 
      <key>kind</key> 
      <string>software</string> 
      <key>title</key> 
      <string>AppName Dev</string> 
     </dict> 
    </dict> 
</array> 

+0

的可能的複製[下載-點播服務應用內從 - 另一個-APP-編程](http://stackoverflow.com/questions/37156632/download-inhouse-app-from-another- APP-編程/ 37157308#37157308) –

回答

2

我通過檢查設備日誌來發現問題,它說沒有找到嵌入式設置。

我只是解壓縮了通過使用Jenkins創建的.ipa文件,並將其與通過使用Xcode創建的.ipa進行了比較。我得到了jenkins沒有正確嵌入配置文件的區別。

我通過在jenkins作業中爲配置文件提供文件夾路徑而犯了一個錯誤,只是通過特定的配置文件路徑進行了更新。

enter image description hereenter image description here

1

我有類似的問題,用發展的基礎之上。我的Jenkins構建並簽署了二進制文件,然後上傳到HockeyApp進行分發,但不知何故,使用新設備的人無法安裝構建版本,即使他們的設備位於配置文件中。我發現Jenkins正在使用自定義開發配置文件,而不是由Xcode管理的團隊配置文件。症狀與您描述的完全相同,當我在設備上手動安裝該自定義配置文件時,他們可以安裝該應用程序。

對我來說,解決的辦法是更新Jenkins的工作,使用團隊配置文件而不是自定義配置文件。也許你應該檢查你的Jenkins用什麼來簽名應用程序?

相關問題