Have bundlerarrow-up-right installed
Have a Gemfile at the root of your project
In your Gemfile add the line cocoapods
cocoapods
Run bundle install
bundle install
Go into the iOS project folder (cd ios)
cd ios
Initialize pods with bundle exec pod init
bundle exec pod init
Add pods to .gitignore
pods
Open the Podfile
Podfile
Remove every [name]Tests target
(Optional) Remove the [name]-tvOS target
Run bundle exec pod install
bundle exec pod install
Checks:You now have a projectName.xcworkspace file in the ios folderYou can run your project by opening projectName.xcworkspace with XCode or react-native run-iosThe pods folder shouldn't show up in the git diffs
Checks:
You now have a projectName.xcworkspace file in the ios folder
ios
You can run your project by opening projectName.xcworkspace with XCode or react-native run-ios
react-native run-ios
The pods folder shouldn't show up in the git diffs
Add pod '<POD_NAME>', '~> <Version>' inside the target
pod '<POD_NAME>', '~> <Version>'
Checks:The exposed .h file from the pod can be imported in AppDelegate.mYou can run your project by opening projectName.xcworkspace with XCode or react-native run-ios
The exposed .h file from the pod can be imported in AppDelegate.m
Last updated 7 years ago