相关疑难解决方法(0)

iOS 10 - 请求相机,麦克风和照片库权限导致应用程序崩溃的更改

info.plist现在需要用户权限才能访问媒体库,照片,相机和其他硬件.解决方案是将他们的密钥添加到iOS 10用户的描述中,以便我们如何使用他们的数据,

我只能找到几把钥匙

NSPhotoLibraryUsageDescription
NSMicrophoneUsageDescription
NSCameraUsageDescription
Run Code Online (Sandbox Code Playgroud)

我想知道是否还有更多的密钥用于其他硬件,info.plist 如果你没有提供info.plist正确的密钥描述,如果使用XCode-8 beta进行构建,你的应用程序将崩溃.

plist user-permissions ios ios10

97
推荐指数
3
解决办法
12万
查看次数

通过Cordova config.xml向iOS .plist文件添加条目

我是Cordova CLI的新手.

我需要通过Cordova以编程方式执行以下步骤.

  1. 在项目.plist中添加一个新行
  2. 在新行中输入以下值:
  3. :GDLibraryMode 类型:字符串(默认):GDEnterpriseSimulation

我想我需要在项目根目录中的config.xml文件中执行此操作(或者可能是"platforms"文件夹中的那个).

有人可以向我解释如何通过config.xml添加条目,以便在编译时添加上述条目吗?

我正在使用Cordova 3.3.1-0.42(我知道它不是最新的).我已经完成了我的项目,一切都很好,我只需要将这个条目添加到pList中.

ios phonegap-plugins cordova cordova-3 cordova-plugins

78
推荐指数
8
解决办法
6万
查看次数

Visual Studio Cordova缺少Info.plist键

我正在使用visual studio开发cordova应用程序.

如果我使用Xcode8将我的应用程序上传到商店,我会收到以下错误邮件.

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.

基于另一个stackoverflow问题,我添加了插件https://github.com/leecrossley/cordova-plugin-transport-security并修改了plugin.xml:

<platform name="ios"> <config-file target="*-Info.plist" parent="NSAppTransportSecurity"> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSPhotoLibraryUsageDescription</key> <string>This app requires access to the photo library.</string> <key>NSMicrophoneUsageDescription</key> <string>This app does not require access to the microphone.</string> <key>NSCameraUsageDescription</key> <string>This app requires access to the camera.</string> </dict> </config-file> …

xcode info.plist visual-studio ios cordova

11
推荐指数
1
解决办法
796
查看次数