2017-03-06 97 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. 
相关问题