- Clone the repo
- Go to project folder
- Run from console
yarn
cd ios
pod install
cd ../
- To run android:
react-native run-android
- To run ios:
open
*.xcworkspace
in Xcode, choose simulator device and press run button in the left part of the top bar
-
XCode -> File -> (Project Settings or Workspace Settings)
-
And choose
Legacy Build System
inBuild System
dropdown; -
After this - re-install
node_modules
;
If this wasn't helpful - try next steps:
rm -r ~/.rncache
rm -rf node_modules
yarn
react-native run-ios --scheme "dev"
cd node_modules/react-native/third-party/glog{version number} && sh ./configure
- clear
Derived Data
in Xcode - Run build in Xcode
https://github.com/S-PRO/react-native-env-setup
- Please - use only "dev" scheme/productFlavor for development! "stage"/"preproduction"/"production" are going to be used while QA/Production
- On iOS platform only "dev" scheme is debuggable, "stage"/"preproduction"/"production" are signed via release configs
- No install 10 JDK or higher.
- No pure
react-native run-android
usage. For development - please use commands below; - No pure
cd android && ./gradlew assembleRelease
usage. For development - please use commands below;
yarn run android:run-dev
- dev version (uses config from.env.dev
);yarn run android:run-stage
- stage version (uses config from.env.stage
);yarn run android:run-preproduction
- preproduction version (uses config from.env.preproduction
);yarn run android:run-production
- production version (uses config from.env.production
);
Starting: Intent { cmp=com.app/.MainActivity } Error type 3 Error: Activity class {com.app/com.app.MainActivity} does not exist.
yarn run android:build-dev
- dev version (uses config from.env.dev
);yarn run android:build-stage
- stage version (uses config from.env.stage
);yarn run android:build-preproduction
- preproduction version (uses config from.env.preproduction
);yarn run android:build-production
- production version (uses config from.env.production
);
- No pure
react-native run-ios
usage. For development - please use Xcode; - Please, use
xcworkspace
file, notxcproject
.
- Choose scheme;
- Run on simulator/device;
- Choose scheme;
- Run "Product/Archive";
Run shell script from terminal
sh ./change_bundle_id.sh ${old_bundle_id} ${new_bundle_id}
old_bundle_id
is com.starter
here;
Please, follow instructions described here https://github.com/Elyx0/react-native-document-picker. This is required for correct iOS setup.