1require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking") 2require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods") 3require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules") 4 5require 'json' 6podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {} 7 8prepare_react_native_project! 9 10flipper_config = ENV['NO_FLIPPER'] == "1" || ENV['CI'] ? FlipperConfiguration.disabled : FlipperConfiguration.enabled 11 12platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0' 13install! 'cocoapods', 14 :deterministic_uuids => false 15 16target 'NativeTests' do 17 # add this manually, because it has UITests too 18 pod 'expo-dev-menu', path: '../../../packages/expo-dev-menu', :testspecs => ['Tests', 'UITests'] 19 20 use_expo_modules_tests! 21 22 pod 'ExpoModulesTestCore', :path => "../../../packages/expo-modules-test-core/ios" 23 pod 'Nimble', :podspec => './../../../ios/Nimble.podspec' 24 25 config = use_native_modules! 26 27 use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks'] 28 29 # Flags change depending on the env values. 30 flags = get_default_flags() 31 32 use_react_native!( 33 :path => config[:reactNativePath], 34 :hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes', 35 :fabric_enabled => flags[:fabric_enabled], 36 # An absolute path to your application root. 37 :app_path => "#{Pod::Config.instance.installation_root}/..", 38 # 39 # Uncomment to opt-in to using Flipper 40 # Note that if you have use_frameworks! enabled, Flipper will not work 41 # :flipper_configuration => flipper_config, 42 ) 43 44 post_install do |installer| 45 react_native_post_install( 46 installer, 47 config[:reactNativePath], 48 # Set `mac_catalyst_enabled` to `true` in order to apply patches 49 # necessary for Mac Catalyst builds 50 :mac_catalyst_enabled => false 51 ) 52 __apply_Xcode_12_5_M1_post_install_workaround(installer) 53 end 54 55 post_integrate do |installer| 56 begin 57 expo_patch_react_imports!(installer) 58 rescue => e 59 Pod::UI.warn e 60 end 61 end 62 63end 64