iOS

React Native

iOS setup

Update Podfile in your_project_dir/ios folder

  1. change minimum iOS deployment target to 10.0 or later

  2. add dynamic frameworks support

  3. add custom podspec repo url

  4. add workaround for Flipper framework usage (only if you plan to use Flipper framework). We recommend not to use Flipper and remove mentions of it from Podfile and AppDelegate.m files

platform :ios, '10.0'
source 'https://bitbucket.org/authenteq/cocoapods-specs.git'
source 'https://cdn.cocoapods.org/'
use_frameworks!
# Following code is required only when you are using Flipper
# If you don't plan to use Flipper, you can remove this part
$static_framework = ['CocoaAsyncSocket', 'CocoaLibEvent', 'OpenSSL-Universal', 'Flipper-Folly', 'FlipperKit', 'Flipper', 'Flipper-DoubleConversion', 'Flipper-Glog', 'Flipper-PeerTalk', 'Flipper-RSocket']
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
installer.pod_targets.each do |pod|
if $static_framework.include?(pod.name)
puts "Overriding the static_framework method for #{pod.name}"
def pod.build_type;
Pod::BuildType.static_library
end
end
end
end
# end
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
... other content of Podfile ...

Apply changes in Podfile

Run pod install command in your_project_dir/ios folder