iOS
React Native
iOS setup
Update Podfile in your_project_dir/ios folder
your_project_dir/ios folderplatform :ios, '11.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
Last updated
Was this helpful?