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