执行shoutem run-ios
后,应用程序构建正常并加载启动页面。一旦进入主屏幕,我会看到红色错误屏幕,显示以下消息:
console.error:“Unhandled promise rejction”
在日志中,我看到以下错误:
TypeError:无法读取null的属性'Symbol(Symbol.iterator)' at launchEditor(/Users/njdeveloper/.shoutem/platforms/build/node_modules/react-native/local-cli/server/util/launchEditor.js:153:29) at Object.handle(/Users/njdeveloper/.shoutem/platforms/build/node_modules/react-native/local-cli/server/middleware/openStackFrameInEditorMiddleware.js:17:7) 在下一个(/Users/njdeveloper/.shoutem/platforms/build/node_modules/connect/lib/proto.js:174:15) at Object.handle(/Users/njdeveloper/.shoutem/platforms/build/node_modules/react-native/local-cli/server/middleware/getDevToolsMiddleware.js:74:7) 在下一个(/Users/njdeveloper/.shoutem/platforms/build/node_modules/connect/lib/proto.js:174:15) at Object.handle(/Users/njdeveloper/.shoutem/platforms/build/node_modules/react-native/local-cli/server/middleware/getDevToolsMiddleware.js:74:7) 在下一个(/Users/njdeveloper/.shoutem/platforms/build/node_modules/connect/lib/proto.js:174:15) 在Object.compression [作为句柄](/Users/njdeveloper/.shoutem/platforms/build/node_modules/compression/index.js:205:5) 在下一个(/Users/njdeveloper/.shoutem/platforms/build/node_modules/connect/lib/proto.js:174:15) 在IncomingMessage。 (/Users/njdeveloper/.shoutem/platforms/build/node_modules/react-native/local-cli/server/middleware/loadRawBodyMiddleware.js:20:5)