Unknown execution context on iOS Simulator with Remote JS Debugging
See original GitHub issue-
Goals Debug code with Remote JS Debugging.
-
Expected results Debug code with Remote JS Debugging.
-
Actual results Red error screen with title ‘Unknown execution context’
-
Steps to reproduce
- Create new project
react-native init TestRealm
- Install Realm
npm install --save realm
oryarn add realm
- Link Realm
react-native link realm
- In index.ios.js insert
import Realm from 'realm
- Run code
react-native run-ios
- Enable Remote JS Debugging
-
Code sample that highlights the issue https://github.com/aparedes/TestRealm
-
Version of Realm 1.0.2 / Xcode 8.2.1 / OSX 10.11.6
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (3 by maintainers)
Top Results From Across the Web
importing Realm to Expo React Native IOS app - appsloveworld
Coding example for the question unknown execution context error - importing Realm to Expo React Native IOS app.
Read more >Xcode 12 beta 4 - error compiling … | Apple Developer Forums
An existing framework library workspace compiles without error when targeting iOS device architecture, but when targeting Simulator I receive the following ...
Read more >unknown execution context when import realm in react-native
I was getting this error when I had chrome's debugger in simulator mode. That is because Realm doesn't know if its running in...
Read more >React Native | WebStorm Documentation - JetBrains
Make sure the JavaScript and TypeScript and JavaScript Debugger ... tools to get started with React Native, for example, an iOS simulator.
Read more >VS for Mac 2022 Preview 7 can't launch iOS app in debug mode
When try to run my app on iphone simulator 15.4 i get “error HE0042: Could not launch the app 'xxx' on the device...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Do you have the debugger with device toolbar on?
It seems that is the one causing the problems. Or at least for me.
running
react-native run-ios
again, worked for me.