2017-03-06 82 views
-1

我已經在網上搜索了一個可行的解決方案,並嘗試了所有這些都沒有成功。我希望如果我是特定的人可以幫助。通過iTunes Connect上傳的iOS應用程序「有一個或多個問題」

我使用Adobe PhoneGap來打包我的HTML5,CSS,JS遊戲。 我下載了.ipa文件並通過Mac上的Application Loader上傳。

返回的錯誤爲: 缺少Info.plist鍵 - 此應用程序嘗試訪問隱私敏感數據而沒有使用說明。該應用程序的Info.plist必須包含一個帶有字符串值的NSPhotoLibraryUsageDescription項,向用戶解釋應用程序如何使用此數據。

所以,我看着的PhoneGap自己的建議,在http://phonegap.com/blog/2014/01/30/customizing-your-android-manifest-and-ios-property-list-on-phonegap-build/ 並添加以下到我自己的config.xml

<gap:config-file platform="ios" parent="NSPhotoLibraryUsageDescription" overwrite="true"> 
    <array> 
     <string>Does not use photo library</string> 
    </array> 
</gap:config-file> 

我撞到在config.xml中的版本號,打包起來爲PhoneGap的,下載的.ipa並通過ApplicationLoader重新上傳。 我得到同樣的錯誤。

我以爲會從文檔,這是我們如何獲取信息到難以接近的info.plist

我會爲解決這個非常感激。

非常感謝, 馬克。

+0

您是否使用相機和照片庫在您的應用程序? –

+0

嗨Yogendra,不,我沒有使用相機或照片庫。 – MarkW

+0

你沒有使用相機和照片庫。有你需要的<差距:配置文件中的平臺=「IOS」父=「NSPhotoLibraryUsageDescription」覆蓋=「真」> 不使用的照片庫 :在配置 。 XML ??? –

回答

1

NSPhotoLibraryUsageDescription不是數組。它的字符串值。

<gap:config-file platform="ios" parent="NSPhotoLibraryUsageDescription" overwrite="true"> 
    <string>App is using Photolibrary</string> 
    </gap:config-file> 
+0

這工作。非常感謝。 – MarkW

1

您需要添加攝像頭和PhotoLibrary允許在iOS的項目info.plist檢查此鏈接:add permission iOS .plist

<key>NSCameraUsageDescription</key> 
<string>Your Message</string> 
<key>NSPhotoLibraryUsageDescription</key> 
<string>Your Message</string> 
+0

這是我的問題。使用PhoneGap我沒有直接訪問info.plist文件。我似乎有唯一的選擇是修改配置文件。 PhoneGap然後爲我創建info.plist。 – MarkW

0
You should add the description of permissions in info.plist as the following. 

<key>NSCameraUsageDescription</key> 
<string>Your Message</string> 
<key>NSPhotoLibraryUsageDescription</key> 
<string>Your Message</string> 

Otherwise your app will crashes. 

You don't use any private frameworks in your app. 

Try to validate your build through xcode, It gives the exact errors in the build. 
相關問題