mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Explain custom configuration debugging gotcha
Summary: Debugging tools won't work if you're using a custom configuration and Cocoapods and didn't specify the configuration to be a `debug` configuration using the `xcodeproj` setting in your Podfile. When integrating React Native into an existing Xcode project, this is a common situation to encounter. See https://github.com/facebook/react-native/issues/2246#issuecomment-217187621 Closes https://github.com/facebook/react-native/pull/7407 Differential Revision: D3268032 fb-gh-sync-id: f46c4a1f927128fd34c2f8ce4be4c275468f2355 fbshipit-source-id: f46c4a1f927128fd34c2f8ce4be4c275468f2355
This commit is contained in:
parent
14eb427a80
commit
b1892e6099
@ -219,7 +219,7 @@ Now compile and run your app. You shall now see your React Native app running in
|
||||
|
||||
![Example](img/EmbeddedAppExample.png)
|
||||
|
||||
Live reload and all of the debugging tools will work from the simulator (make sure that DEBUG=1 is set under Build Settings -> Preprocessor Macros). You've got a simple React component totally encapsulated behind an Objective-C `UIView` subclass.
|
||||
Live reload and all of the debugging tools will work from the simulator. Just make sure that `DEBUG=1` is set under Build Settings -> Preprocessor Macros. If you're using Cocoapods and a custom configuration (that is, not "Debug"), make sure you've specified it to be a debug configuration using the [`xcodeproj` setting](https://guides.cocoapods.org/syntax/podfile.html#xcodeproj) in your Podfile. Also make sure you've got a simple React component totally encapsulated behind an Objective-C `UIView` subclass.
|
||||
|
||||
## Conclusion
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user