56.0 IOS Can't find variable: window (lldb) #20169
Labels
Platform: iOS
iOS applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Environment
Description
bundle production error
An error occurred after the compilation was completed Can't find variable: window
Run scripts
react-native bundle --entry-file index.ios.js --bundle-output ./ios/bundle/index.ios.jsbundle --platform ios --assets-dest ./ios/bundle --dev false --verbose --reset-cache
Compilation success
XCode run Release
2018-07-12 19:16:43.699 [fatal][tid:main] Unhandled JS Exception: Can't find variable: window (/var/containers/Bundle/Application/B9F3C17A-CE82-4514-BD0A-0F3B5647EF48/apdnews.app/main.jsbundle:371)
2018-07-12 19:16:43.699894+0800 apdnews[13373:1580984] Unhandled JS Exception: Can't find variable: window (/var/containers/Bundle/Application/B9F3C17A-CE82-4514-BD0A-0F3B5647EF48/apdnews.app/main.jsbundle:371)
2018-07-12 19:16:43.700093+0800 apdnews[13373:1580984] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Can't find variable: window (/var/containers/Bundle/Application/B9F3C17A-CE82-4514-BD0A-0F3B5647EF48/apdnews.app/main.jsbundle:371)', reason: 'Unhandled JS Exception: Can't find variable: window (/var/containers/Bundle...'
*** First throw call stack:
(0x183b6ed8c 0x182d285ec 0x104e2b170 0x104e171f0 0x1057051dc 0x10570519c 0x105709d2c 0x183b17070 0x183b14bc8 0x183a34da8 0x185a19020 0x18da51758 0x104dc2d34 0x1834c5fc0)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
The text was updated successfully, but these errors were encountered: