require_relative '../node_modules/react-native/scripts/react_native_pods' platform :ios, '15.1' install! 'cocoapods', :deterministic_uuids => false # Add Expo modules autolinking expo_autolinking_script = File.join(File.dirname(%x(node --print "require.resolve('expo/package.json')").strip), "scripts/autolinking") require expo_autolinking_script if File.exist?(expo_autolinking_script) target 'mobiledarmasaba' do # Use Expo modules with guard use_expo_modules! if respond_to?(:use_expo_modules!) config = { :reactNativePath => "../node_modules/react-native" } use_react_native!( :path => config[:reactNativePath], :hermes_enabled => true ) # Post Install processing post_install do |installer| # Call react_native_post_install without parameters react_native_post_install(installer) # Set C++20 standard for all targets installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['CLANG_CXX_LANGUAGE_STANDARD'] = 'c++20' config.build_settings['CLANG_CXX_LIBRARY'] = 'libc++' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.1' # Enable C++ modules config.build_settings['CLANG_ENABLE_MODULES'] = 'YES' config.build_settings['GCC_C_LANGUAGE_STANDARD'] = 'gnu11' end end end end