Skip to content

Web inspector flashing on production/release build when starting the app #2071

Open
@AdrianFahrbach

Description

@AdrianFahrbach

Environment

react-native -v: v0.72.10
npm ls react-native-macos: v0.72.16
node -v: v18.17.1
npm -v: v9.6.7
yarn --version: not using yarn
xcodebuild -version: Xcode 15.2 Build version 15C500b

Steps to reproduce the bug

  1. Follow the steps in the "Get Started with macOS" docs article, but use this command to install react native with the specific version that I am using: npx react-native@latest init <projectName> --template "react-native@^0.72.10"
  2. Build a release version of your app following the "Publishing to Apple App Store" of the React Native docs.
  3. Go to the folder where your Release app was saved (somewhere at /Users/<you>/Library/Developer/Xcode/DerivedData/<project-name>-<random-string>/Build/Products/Release/).
  4. Open the app in that folder. You will see the web inspector flashing.

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.

screencap-2.mp4

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions