Open AdrianFahrbach opened 5 months ago
Heh.. that's new. Do you have one of these options enabled in Safari?
If you have access to your JSCRuntime
in your app delegate, you may also be able to use the changes in this PR to disable debugging on ship: https://github.com/microsoft/react-native-macos/pull/1957
Heh.. that's new. Do you have one of these options enabled in Safari?
Yes, this is it! 🤦♂️ Thank you so much for your fast response. Really appreciate it every time!
Heh.. that's new. Do you have one of these options enabled in Safari?
Yes, this is it! 🤦♂️ Thank you so much for your fast response. Really appreciate it every time!
Im still worried that a user launching a Ship React Native macOS app will see the flicker of the dev inspector every time, if they have this enabled. To confirm, you created a ship / release app with React Native macOS, have one of those options enabled, and see the flicker?
Heh.. that's new. Do you have one of these options enabled in Safari?
Yes, this is it! 🤦♂️ Thank you so much for your fast response. Really appreciate it every time!
Im still worried that a user launching a Ship React Native macOS app will see the flicker of the dev inspector every time, if they have this enabled. To confirm, you created a ship / release app with React Native macOS, have one of those options enabled, and see the flicker?
Yes, I had "Automatically Show Web Inspector for JSContexts" enabled. Once I disabled this option, the web inspector didn't appear anymore. No rebuild required. I don't remember enabling that option, but I'm a webdev, so it makes sense that I did.
@AdrianFahrbach I fear this is still a valid issue then, since for a split second, the JSContext shows up as debuggable instead of being off from the get go. I'll keep this open.
Environment
Steps to reproduce the bug
npx react-native@latest init <projectName> --template "react-native@^0.72.10"
/Users/<you>/Library/Developer/Xcode/DerivedData/<project-name>-<random-string>/Build/Products/Release/
).Expected Behavior
The web inspector should be hidden in release/production mode.
Actual Behavior
The web inspector is flashing right before the app has loaded.
Reproducible Demo
Here is a video of the problem. I can also provide you with the test project that I was using but it's just the basic setup mentioned above.
https://github.com/microsoft/react-native-macos/assets/45072099/782d1f39-fc35-4fe2-a32c-e3df75e9ded2
Additional context
I didn't test this with other React Native version, expect 0.73 a while ago. I also think that I didn't have this issue when I started with my project (react-native <0.72) I'm not at all sure on that though.