Skip to content

How to disable react native dev mode in debug build configuration for iOS? #24272

@ccorcos

Description

@ccorcos

I'm trying to debug the application bootup and i want to skip the websocket server that downloads the react native bundler.

Everything I've read on the internet just says to use release build configuration, but I need the debug configuration in order to debug my app.

I found this little bit that prevents the bundle from re-building but it still connects to the websocket server to download the bundle instead of building it in.

https://facebook.github.io/react-native/docs/running-on-device.html#pro-tips

I also tried setting #define RCT_DEV 0 in RTCDefines.h but that caused other build errors importing RCTReconnectingWebsocket...

Any ideas how to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: iOSiOS applications.Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Type: QuestionIssues that are actually questions and not bug reports.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions