RaG*_*aGu 3 app-store ios cordova ionic2
我开发了Ionic 2应用程序.当我尝试将其上传到Apple商店时,他们会拒绝它,并显示以下消息:
缺少Info.plist密钥 - 此应用程序尝试在没有使用说明的情况下访问隐私敏感数据.应用程序的Info.plist必须包含一个NSPhotoLibraryUsageDescription键,其中包含一个字符串值,向用户解释应用程序如何使用此数据.
我NSPhotoLibraryUsageDescription在config.xml中添加了密钥
<plugin name="cordova-plugin-camera" spec="https://github.com/apache/cordova-plugin-camera">
<variable name="CAMERA_USAGE_DESCRIPTION" value="App would like to access the camera." />
<variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="App would like to access the library." />
</plugin>
Run Code Online (Sandbox Code Playgroud)
但他们仍然以同样的信息拒绝了应用程序.我是否需要在所有插件变量中添加此键?我的意思是我也使用了图像选择器插件.我是否还需要在此插件中添加此密钥?我已经添加了,但他们仍然拒绝同样的错误.
Cri*_*oot 14
对我有用的东西是改变config.xml
<platform name="ios">
<config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">
<string>You can upload your profile picture using your Photo Library</string>
</config-file>
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
<string>You can upload your profile picture using your camera</string>
</config-file>
Run Code Online (Sandbox Code Playgroud)
小智 3
Photolibrary 有两种类型的 info.plist。
<variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="App would like to access the library." />
<variable name="PHOTO_LIBRARY_USAGE_DESCRIPTION" value="App would like to access the library." />
Run Code Online (Sandbox Code Playgroud)
也许你没有在相应的插件中添加第二个变量。请也补充一下。希望它会起作用。
| 归档时间: |
|
| 查看次数: |
4820 次 |
| 最近记录: |