- A Mac with XCode and XCode command line tools installed
- Install
npm
to install JS dependencies (https://nodejs.org/en/ orbrew install node
- may already be installed) - Install Cocoapods to install native dependencies (https://guides.cocoapods.org/using/getting-started.html -
sudo gem install cocoapods
should work on most systems) - Install
react-native-cli
globally withnpm install -g react-native-cli
cd
into theReactNative
subdirectory of the project- run
npm install
to install the JS dependencies (i.e. React Native itself) - Open
JuceRNExample.jucer
in Projucer and press Cmd-S to export for XCode (we don't want to open the project yet) cd ..
back to the top level and runpod install
to install the native depdencies into the XCode workspace- Open
Builds/iOS/JuceRNExample.xcworkspace
(not.xcodeproj
) in XCode
Note: if you make any changes to the Projucer project, you need to export and then run pod install
again, otherwise the Cocoapods specific settings will be lost
- From the
ReactNative
subdirectory, runreact-native start
to start the development server - Ensure the
Debug
build configuration is selected in XCode's Product > Scheme > Edit Scheme dialog - Run the project from Xcode.
Note: if you are running on a real device rather than the simulator, you'll need to update 127.0.0.1
in BridgeDelegate.mm
to your computer's wifi LAN address so that the device can load from the computer over the wifi network.