Skip to content

UIBackgroundModes字段类型错误 #51

@Es-Rell

Description

@Es-Rell

描述问题

UIBackgroundModes的值无论填入string还是string[] 都会报类型错误

版本:0.9.3

Image
Image

复现

{
  "name": "",
  "appid": "",
  "description": "",
  "versionName": "2.0.0",
  "versionCode": "200",
  /* 5+App特有相关 */
  "app-plus": {
    "usingComponents": true,
    "nvueStyleCompiler": "uni-app",
    "compilerVersion": 3,
    "splashscreen": {
      "alwaysShowBeforeRender": true,
      "waiting": true,
      "autoclose": true
    },
    "safearea": {
      "background": "#ffffff",
      "bottom": {
        "offset": "none"
      }
    },
    /* 模块配置 */
    "modules": {
      "Push": {},
      "Maps": {},
      "Barcode": {},
      "Camera": {}
    },
    /* 应用发布信息 */
    "distribute": {
      /* android打包配置 */
      "android": {
        "permissions": [
          "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
          "<uses-permission android:name=\"android.permission.CAMERA\"/>"
        ],
        "abiFilters": ["armeabi-v7a", "arm64-v8a"],
        "minSdkVersion": 21,
        "targetSdkVersion": 30
      },
      /* ios打包配置 */
      "ios": {
        "appid": "",
        "privacyDescription": {
          "NSLocationWhenInUseUsageDescription": "获取用户位置以推送订单信息",
          "NSLocationAlwaysUsageDescription": "获取用户位置以推送订单信息",
          "NSLocationAlwaysAndWhenInUseUsageDescription": "获取用户位置以推送订单信息",
          "NSPhotoLibraryUsageDescription": "扫描机器二维码打开设备详情",
          "NSCameraUsageDescription": "扫描机器二维码打开设备详情"
        },
        "UIBackgroundModes": ["audio,location"],
        "dSYMs": false
      },
      /* SDK配置 */
      "sdkConfigs": {},
      "splashscreen": {
        "iosStyle": "common",
        "androidStyle": "common",
        "useOriginalMsgbox": true
      }
    },
    
  },
  "uniStatistics": {
    "enable": false
  },
  "vueVersion": "3",
  "fallbackLocale": "zh-Hans"
}

系统信息

@create-uni/[email protected]

使用的包管理器

yarn

核对

贡献

  • 我愿意提交一个 PR 修复这个问题
  • 我愿意提交一个 PR 带有失败的测试(实际上只要去做就好,谢谢!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions