Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native iOS build failure #3617

Open
alen-s opened this issue Sep 8, 2024 · 0 comments
Open

React Native iOS build failure #3617

alen-s opened this issue Sep 8, 2024 · 0 comments
Labels
bug-setup 🪲 waiting Non planned issues

Comments

@alen-s
Copy link

alen-s commented Sep 8, 2024

Environment

  • Dev OS: MacOS
  • @rnmapbox/maps version: [eg. 10.8.0]
  • React Native version: [eg. 0.73.0]

I cannot install MapBox for ios with react native.
I followed this guides - https://docs.mapbox.com/ios/maps/guides/install/
https://github.com/rnmapbox/maps/blob/main/ios/install.md

And here is my Podfiile.

# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
  'require.resolve(
    "react-native/scripts/react_native_pods.rb",
    {paths: [process.argv[1]]},
  )', __dir__]).strip

platform :ios, min_ios_version_supported
prepare_react_native_project!

install! 'cocoapods', :disable_input_output_paths => true

# Mapbox
$RNMapboxMapsUseV11 = true
$RNMapboxMapsVersion = '= 11.4.0'
$RNMapboxMapsImpl = 'mapbox'

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end

target 'project' do
  config = use_native_modules!

  # Firebase
  use_frameworks! :linkage => :static
  $RNFirebaseAsStaticFramework = true

  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCoreInternal', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  
  use_react_native!(
    :path => config[:reactNativePath],
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  target 'projectTests' do
    inherit! :complete
    # Pods for testing
  end
  
  pre_install do |installer|
    $RNMapboxMaps.pre_install(installer)
  end

  post_install do |installer|
    # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false,
      # :ccache_enabled => true
    )
    $RNMapboxMaps.post_install(installer)
  end
end

And it is giving these build failures
Sandbox: bash(32363) deny(1) file-read-data /Users/alen/Public/html/project/ios/Pods/Target Support Files/Pods-project/Pods-project-frameworks.sh

Warning:

Command Ld emitted errors but did not return a nonzero exit code to indicate failure

Who can help to solve this?

Thanks in advance,

@mfazekas mfazekas added the waiting Non planned issues label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-setup 🪲 waiting Non planned issues
Projects
None yet
Development

No branches or pull requests

2 participants