As React Native’s sources are bundled with the npm packages, it may be easiest to bootstrap your setup by generating a RN app and then removing all the parts you don’t need.
$ react-native init TestStandaloneRNBuilds
[…]
$ cd TestStandaloneRNBuilds/ios
$ rm -rf TestStandaloneRNBuilds*
$ edit PodfileUpdate with contents of Podfile example.
$ pod install
Analyzing dependencies
Downloading dependencies
Generating Pods project
Skipping User Project Integration
Pod installation complete! There are 28 dependencies from the Podfile and 26 total pods installed.
[!] The abstract target Pods is not inherited by a concrete target, so the following dependencies won't make it into any targets in your project:
[…]Now you are left with a Pods/Pods.xcodeproj that is able to build all the deps, which you can do in any way you would normally build Xcode projects. E.g.:
$ xcodebuild -project Pods/Pods.xcodeproj -configuration Debug -target React
[…]
$ tree build/Debug-iphonesimulator/
build/Debug-iphonesimulator/
├── DoubleConversion
│ └── libDoubleConversion.a
├── Folly
│ └── libFolly.a
├── React-Core
│ └── libReact-Core.a
├── React-RCTActionSheet
│ └── libReact-RCTActionSheet.a
├── React-RCTAnimation
│ └── libReact-RCTAnimation.a
├── React-RCTBlob
│ └── libReact-RCTBlob.a
├── React-RCTImage
│ └── libReact-RCTImage.a
├── React-RCTLinking
│ └── libReact-RCTLinking.a
├── React-RCTNetwork
│ └── libReact-RCTNetwork.a
├── React-RCTSettings
│ └── libReact-RCTSettings.a
├── React-RCTText
│ └── libReact-RCTText.a
├── React-RCTVibration
│ └── libReact-RCTVibration.a
├── React-cxxreact
│ └── libReact-cxxreact.a
├── React-jsi
│ └── libReact-jsi.a
├── React-jsiexecutor
│ └── libReact-jsiexecutor.a
├── React-jsinspector
│ └── libReact-jsinspector.a
├── Yoga
│ └── libYoga.a
└── glog
└── libglog.aBe sure to leverage the xcconfig files generated by CocoaPods to know how to integrate these libs into your application targets:
$ tree -P '*.xcconfig' Pods/Target\ Support\ Files/
Pods/Target\ Support\ Files/
├── DoubleConversion
│ └── DoubleConversion.xcconfig
├── FBLazyVector
│ └── FBLazyVector.xcconfig
├── FBReactNativeSpec
│ └── FBReactNativeSpec.xcconfig
├── Folly
│ └── Folly.xcconfig
├── RCTRequired
│ └── RCTRequired.xcconfig
├── RCTTypeSafety
│ └── RCTTypeSafety.xcconfig
├── React
│ └── React.xcconfig
├── React-Core
│ └── React-Core.xcconfig
├── React-CoreModules
│ └── React-CoreModules.xcconfig
├── React-RCTActionSheet
│ └── React-RCTActionSheet.xcconfig
├── React-RCTAnimation
│ └── React-RCTAnimation.xcconfig
├── React-RCTBlob
│ └── React-RCTBlob.xcconfig
├── React-RCTImage
│ └── React-RCTImage.xcconfig
├── React-RCTLinking
│ └── React-RCTLinking.xcconfig
├── React-RCTNetwork
│ └── React-RCTNetwork.xcconfig
├── React-RCTSettings
│ └── React-RCTSettings.xcconfig
├── React-RCTText
│ └── React-RCTText.xcconfig
├── React-RCTVibration
│ └── React-RCTVibration.xcconfig
├── React-cxxreact
│ └── React-cxxreact.xcconfig
├── React-jsi
│ └── React-jsi.xcconfig
├── React-jsiexecutor
│ └── React-jsiexecutor.xcconfig
├── React-jsinspector
│ └── React-jsinspector.xcconfig
├── ReactCommon
│ └── ReactCommon.xcconfig
├── Yoga
│ └── Yoga.xcconfig
├── boost-for-react-native
│ └── boost-for-react-native.xcconfig
└── glog
└── glog.xcconfig
What about the Flipper pods?