require 'pathname' react_native_path = Pathname.new(File.realpath('../node_modules/react-native-macos', __dir__)).relative_path_from(Pathname.new(__dir__)).to_s require_relative "#{react_native_path}/scripts/react_native_pods" ENV['PLATFORM_NAME'] ||= 'macosx' prepare_react_native_project! target 'EffectUi-macOS' do platform :macos, '14.0' # Run CLI discovery from the JS package so it resolves the macOS platform plugin. use_native_modules!(%w[pnpm --dir .. exec react-native config]) flags = get_default_flags() use_react_native!( :path => react_native_path, :fabric_enabled => ENV['RCT_NEW_ARCH_ENABLED'] == '1', :app_path => "#{Pod::Config.instance.installation_root}/.." ) post_install do |installer| react_native_post_install(installer, react_native_path) end end