反应本机xcode项目不在iPhone上构建

时间:2018-10-15 03:40:25

标签: ios react-native ios12

将ios更新到第12版并将xcode更新到最新版本后,我无法构建该项目。

我能够在xcode中成功构建项目,但是当我在iPhone上构建时,我得到以下结论:

window.addEventListener is not a function. 
(In 'window.addEventListener('message', 
idleTick, false)', 'window.addEventListener' is 
undefined)

<unknown>
schedule.development.js:366.26

<unknown>
schedule.development.js:15.2

loadModuleImplementation
require.js:213:12

<unknown>
index.js:6:19

<unknown>
react-dom.development.js:21:15

<unknown>
react-dom.development.js:15:2

loadModuleImplementation
require.js:213:12

<unknown>
index.js:37:19

loadModuleImplementation
require.js:213:12

<unknown>
index.js:5

loadModuleImplementation
require.js:213:12

guardedLoadModule
require.js:140:45

global core
<unknown file>:0

我该怎么做才能建立项目?感谢您的帮助。

0 个答案:

没有答案