Skip to content

dmitrykuznetsovdev/native

Repository files navigation

Mentor2 App

Content

  1. Installation
  2. Running On Device
  3. Running On Simulator
  4. How To Test In-app Purchases

Installation

  1. Run in the project directory:
sudo npm install -g react-native-cli
sudo gem install cocoapods
npm install rnpm -g

npm i 
cd ios 
pod install
  1. Now you have to set up your in-app purchases in iTunes Connect. Follow this tutorial to get easy explanation.

Running On Device

  1. Run in the root directory react-native bundle --entry-file index.ios.js --bundle-output ios/main.jsbundle --minify=true --platform=ios --assets-dest=./ --dev=false
  2. See Using offline bundle
  3. Do not forget to switch the line -> AppDelegate.m 👍
  4. Open XCode
  5. Do what is written paragraph 2
  6. Open project mentor2/ops/Mentor2.xcodeproj
  7. Start on your phone

Run On Simulator

  1. Run in the root directory react-native bundle --entry-file index.ios.js --bundle-output ios/main.jsbundle --minify=true --platform=ios --assets-dest=./ --dev=false
  2. Open XCode.
  3. Open project mentor2/ops/Mentor2.xcodeproj
  4. Run in the simulator: cmd + R

How To Test In-app Purchases

For testing your in-app purchases you should run the app on an actual device. Using the iOS Simulator will always fail.

  1. Set up a test account ("Sandbox Tester") in iTunes Connect. See the official documentation here.

  2. Run your app on an actual iOS device:

  1. Open the app and buy something with your Sandbox Tester Apple Account!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors