You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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,
The text was updated successfully, but these errors were encountered:
Environment
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.
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,
The text was updated successfully, but these errors were encountered: