Podfile 916 B

12345678910111213141516171819202122232425262728293031323334
  1. # Resolve react_native_pods.rb with node to allow for hoisting
  2. require Pod::Executable.execute_command('node', ['-p',
  3. 'require.resolve(
  4. "react-native/scripts/react_native_pods.rb",
  5. {paths: [process.argv[1]]},
  6. )', __dir__]).strip
  7. platform :ios, min_ios_version_supported
  8. prepare_react_native_project!
  9. linkage = ENV['USE_FRAMEWORKS']
  10. if linkage != nil
  11. Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  12. use_frameworks! :linkage => linkage.to_sym
  13. end
  14. target 'mobile' do
  15. config = use_native_modules!
  16. use_react_native!(
  17. :path => config[:reactNativePath],
  18. # An absolute path to your application root.
  19. :app_path => "#{Pod::Config.instance.installation_root}/.."
  20. )
  21. post_install do |installer|
  22. react_native_post_install(
  23. installer,
  24. config[:reactNativePath],
  25. :mac_catalyst_enabled => false,
  26. # :ccache_enabled => true
  27. )
  28. end
  29. end