小程序API调用报错:Can't find variable
开发工具上一切正常,但是在真机测试时 iphone6s(ios12) 报出此错误

checkAuth () {
return _wx.run('getSetting').then(res => {
if (res.authSetting["scope.userInfo"] && wx.getStorageSync('token')) return true
})
},
/* _wx.run */
export function run(name, options = {}) {
return new Promise((resolve, reject) => {
wx[name](Object.assign({}, options, {
success: res => {
options.success && options.success(res)
return resolve(res)
},
fail: res => {
options.fail && options.fail(res)
return reject(res)
}
}))
})
}
