小强同学
小强同学
  • 发布:2021-06-23 14:58
  • 更新:2021-11-18 16:27
  • 阅读:895

iOS上架因为vuex里面有hotUpdate方法被拒

分类:uni-app

最近上架一个app一直因为违反2.5被拒,追问之下回答

“Specifically, it would be appropriate to remove any and all remote code importing or hot updating functionality from this app before resubmitting for review, such as this app’s ‘hotUpdate’ functions in this app’s app-service.js support file.”

我去app-service.js搜了一下发现是来自vuex.js的

p.prototype.hotUpdate=function(t){this._modules.update(t),m(this,!0)}

源码在
https://github.com/vuejs/vuex/blob/dev/src/store.js

hotUpdate (newOptions) {  
    this._modules.update(newOptions)  
    resetStore(this, true)  
  }

请问这个函数有办法改个名字吗?

或者有没有办法不打包vuex?

2021-06-23 14:58 负责人:无 分享
已邀请:
falost

falost

vuex 属于状态管理文件 没有办法不打包 除非不用了 状态管理了吧 但是苹果因为一个关键词 就拒绝过审 那就有点狗了啊

DCloud_iOS_XHY

DCloud_iOS_XHY

遇到这个问题可以回复一下苹果审核人员 这个方法是 vuex 中的方法,和热更新没有任何关系,顺便给他科普一下 vuex 的作用,后续框架会对该方法重命名,避免被苹果扫关键字扫到

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