中午吃啥
中午吃啥
  • 发布:2020-08-20 21:16
  • 更新:2021-09-18 16:36
  • 阅读:1152

【报Bug】IOS在线打包的Info.plist UIBackgroundModes为何默认有audio设置?

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 19041.450

HBuilderX类型: 正式

HBuilderX版本号: 2.8.3

手机系统: iOS

手机系统版本号: iOS 12.4

手机厂商: 苹果

手机机型: 苹果6

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

app云打包之后上架审核就会被据

预期结果:

不设置UIBackgroundModes的audio选项
不要在Info.plist上加入该选项

实际结果:

默认设置UIBackgroundModes的audio选项,现在在线打包会默认在Info.plist上加入该选项

bug描述:

使用云打包方式提交到appstore后遭拒。

Guideline 2.5.4 - Performance - Software Requirements

Your app declares support for audio in the UIBackgroundModes key in your Info.plist but did not include features that require persistent audio.

Next Steps

The audio key is intended for use by apps that provide audible content to the user while in the background, such as music player or streaming audio apps. Please revise your app to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key.
源码视图中也没有设置UIBackgroundModes

"ios" : {  
                "capabilities" : {  
                    "entitlements" : {  
                        "com.apple.developer.associated-domains" : [ "applinks:api.rzszhxy.com" ]  
                    }  
                },  
                "privacyDescription" : {  
                    "NSPhotoLibraryUsageDescription" : "用于头像设置修改、作业照片上传、请假照片说明以及相关的视频上传",  
                    "NSCameraUsageDescription" : "用于头像设置修改、作业照片上传、请假照片说明以及相关的视频上传",  
                    "NSMicrophoneUsageDescription" : "用于布置作业的时候上传语音说明,以及请假的时候语音描述",  
                    "NSAppleMusicUsageDescription" : "用于上传作业附件上传、请假附件说明"  
                }  
            },  
            /* ios打包配置 */  
            "sdkConfigs" : {  
                "ad" : {},  
                "oauth" : {  
                    "apple" : {}  
                },  
                "share" : {  
                    "weixin" : {  
                        "appid" : "wxe089e72c042f6cb4",  
                        "UniversalLinks" : "https://api.rzszhxy.com/ulink/"  
                    }  
                },  
                "push" : {  
                    "unipush" : {}  
                },  
                "speech" : {  
                    "ifly" : {}  
                }  
            },

uni的appid:UNIE917F3F
目前app用到的音频不多,我感觉这个问题是因为这个方法引起的uni.createInnerAudioContext();

2020-08-20 21:16 负责人:DCloud_App_Array 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

从云端打包日志查到应用使用的uni原生插件“TXMLVB-SdkWX”,配置UIBackgroundModes为audio。

  • 中午吃啥 (作者)

    太赞了,就是这个插件弄得,这个云端打包日志我们可以从哪儿看到啊,早有这个日志的话我也就不用排查那么久了

    2020-08-22 00:41

  • 1***@qq.com

    回复 中午吃啥: 请是怎么解决这个问题的

    2020-12-10 10:52

  • 8***@qq.com

    我也遇到了这个问题,但是我没有使用过什么TXMLVB-SdkWX插件,"appid" : "UNI5E94B96",麻烦有空的时候帮忙看下

    2021-03-30 10:18

2***@qq.com

2***@qq.com - muzhou

这个问题解决了?

  • 中午吃啥 (作者)

    把使用的uni原生插件“TXMLVB-SdkWX”删除了...

    2021-09-28 11:13

该问题目前已经被锁定, 无法添加新回复