1*bf6e62f2S猫头猫require_relative '../node_modules/react-native/scripts/react_native_pods' 2*bf6e62f2S猫头猫require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3*bf6e62f2S猫头猫 4*bf6e62f2S猫头猫platform :ios, '12.4' 5*bf6e62f2S猫头猫install! 'cocoapods', :deterministic_uuids => false 6*bf6e62f2S猫头猫 7*bf6e62f2S猫头猫target 'MusicFree' do 8*bf6e62f2S猫头猫 config = use_native_modules! 9*bf6e62f2S猫头猫 10*bf6e62f2S猫头猫 # Flags change depending on the env values. 11*bf6e62f2S猫头猫 flags = get_default_flags() 12*bf6e62f2S猫头猫 13*bf6e62f2S猫头猫 use_react_native!( 14*bf6e62f2S猫头猫 :path => config[:reactNativePath], 15*bf6e62f2S猫头猫 # to enable hermes on iOS, change `false` to `true` and then install pods 16*bf6e62f2S猫头猫 :hermes_enabled => flags[:hermes_enabled], 17*bf6e62f2S猫头猫 :fabric_enabled => flags[:fabric_enabled], 18*bf6e62f2S猫头猫 # An absolute path to your application root. 19*bf6e62f2S猫头猫 :app_path => "#{Pod::Config.instance.installation_root}/.." 20*bf6e62f2S猫头猫 ) 21*bf6e62f2S猫头猫 22*bf6e62f2S猫头猫 target 'MusicFreeTests' do 23*bf6e62f2S猫头猫 inherit! :complete 24*bf6e62f2S猫头猫 # Pods for testing 25*bf6e62f2S猫头猫 end 26*bf6e62f2S猫头猫 27*bf6e62f2S猫头猫 # Enables Flipper. 28*bf6e62f2S猫头猫 # 29*bf6e62f2S猫头猫 # Note that if you have use_frameworks! enabled, Flipper will not work and 30*bf6e62f2S猫头猫 # you should disable the next line. 31*bf6e62f2S猫头猫 use_flipper!() 32*bf6e62f2S猫头猫 33*bf6e62f2S猫头猫 post_install do |installer| 34*bf6e62f2S猫头猫 react_native_post_install(installer) 35*bf6e62f2S猫头猫 __apply_Xcode_12_5_M1_post_install_workaround(installer) 36*bf6e62f2S猫头猫 end 37*bf6e62f2S猫头猫end 38