【发布时间】:2021-02-18 09:43:08
【问题描述】:
在我的带有 expo 的 react-native-app 中,我正在尝试实施 expo-in-app-purchases(“https://docs.expo.io/versions/latest/sdk/in-app-purchases/”)。我完成了文档中提到的所有设置。接下来我尝试使用 Xcode 和我的设备构建解决方案。构建总是失败并显示以下消息:
node_modules/@hapi/hoek/lib/assert.js:20
throw new AssertError(args);
^
Error: Method no longer accepts array arguments: try
at new module.exports (/Users/Projects/test/node_modules/@hapi/hoek/lib/error.js:23:19)
at module.exports (/Users/Projects/test/node_modules/@hapi/hoek/lib/assert.js:20:11)
at Object.exports.verifyFlat (/Users/Projects/test/node_modules/@hapi/joi/lib/common.js:211:9)
at internals.Base.method [as try] (/Users/Projects/test/node_modules/@hapi/joi/lib/types/alternatives.js:168:24)
at Object.<anonymous> (/Users/Projects/test/node_modules/react-
native/node_modules/@react-native-community/cli/build/tools/config/schema.js:35:36)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
error Command failed with exit code 1.
我正在使用 ios 设备版本 10.3.3(它是 ipad)。我也在尝试在此设备中配置我的沙盒帐户,但没有设置沙盒帐户的选项。在设置->iTunes 和 Appstore 中它只显示自动下载没有别的。像这样:
我该怎么办?
更新: 在我的 iOS 手机(14.2)中也无法查看沙盒帐户,为什么?任何帮助?
【问题讨论】:
标签: ios react-native testing in-app-purchase expo