react-in-app-utils没有得到适当的授权

时间:2017-05-30 17:55:58

标签: react-native

我正在使用react-native-in-app-utils来设置应用订阅付款,但是当我打电话时:

var products = [
   'com.xyz.abc',
]; 
InAppUtils.loadProducts(products, (error, products) => {
   //update store here.
});

我明白了:

MobileGestaltSupport.m:151: pid 180 (ScriptAgent) does not have sandbox access for and IS NOT appropriately entitled

1 个答案:

答案 0 :(得分:0)

很可能您没有在Xcode项目中启用In-App Purchase功能。

转到Signing & Capabilities,单击+ Capability,然后选择In-App Purchase