use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change `false` to `true` and then install pods :hermes_enabled => false )
pod 'RNCAsyncStorage', :path => '../ReactNative/node_modules/@react-native-async-storage/async-storage' pod 'RNCMaskedView', :path => '../ReactNative/node_modules/@react-native-community/masked-view' pod 'RNDeviceInfo', :path => '../ReactNative/node_modules/react-native-device-info' pod 'RNGestureHandler', :path => '../ReactNative/node_modules/react-native-gesture-handler' pod 'RNReanimated', :path => '../ReactNative/node_modules/react-native-reanimated' pod 'RNScreens', :path => '../ReactNative/node_modules/react-native-screens' pod 'RNSVG', :path => '../ReactNative/node_modules/react-native-svg'
pod 'react-native-appearance', :path => '../ReactNative/node_modules/react-native-appearance" pod 'react-native-safari-view', :path => '../ReactNative/node_modules/react-native-safari-view" pod 'react-native-safe-area-context', :path => '../ReactNative/node_modules/react-native-safe-area-context"
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) defpod.build_type Pod::BuildType.static_library end end end end
修改 IPHONEOS_DEPLOYMENT_TARGET 配置版本
1 2 3
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 11.0 config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' end