ios – Is there one other answer to “Sandbox: rsync.samba(76010) deny(1) file-write-create error” reasonably than setting ENABLE_USER_SCRIPT_SANDBOXING to NO?

ios – Is there one other answer to “Sandbox: rsync.samba(76010) deny(1) file-write-create error” reasonably than setting ENABLE_USER_SCRIPT_SANDBOXING to NO?


I am getting these errors when constructing my mission in Xcode after putting in mapbox:

error: Sandbox: rsync.samba(76010) deny(1) file-write-create /Customers/lluis/Library/Developer/Xcode/DerivedData/MyProject-dlpddtwcucwpygcxhthjwisifahq/Construct/Merchandise/Debug-iphonesimulator/GuiaMobil-Des.app/Frameworks/MapboxMaps.framework/MapboxMapsResources.bundle (in goal 'MyProject-Des' from mission 'MyProject')
error: Sandbox: rsync.samba(76011) deny(1) file-write-create /Customers/lluis/Library/Developer/Xcode/DerivedData/MyProject-dlpddtwcucwpygcxhthjwisifahq/Construct/Merchandise/Debug-iphonesimulator/MyProject-Des.app/Frameworks/MapboxMaps.framework/.Information.plist.7j5Zxx (in goal 'MyProject-Des' from mission 'MyProject')
error: Sandbox: rsync.samba(76011) deny(1) file-write-create /Customers/lluis/Library/Developer/Xcode/DerivedData/MyProject-dlpddtwcucwpygcxhthjwisifahq/Construct/Merchandise/Debug-iphonesimulator/MyProject-Des.app/Frameworks/MapboxMaps.framework/.MapboxMaps.rIRQea

I’ve tried with ChatGPT and checked a number of completely different locations corresponding to the next hyperlinks:
https://stackoverflow.com/questions/76590131/error-while-build-ios-app-in-xcode-sandbox-rsync-samba-13105-deny1-file-w
https://boards.developer.apple.com/boards/thread/759995
https://www.youtube.com/watch?v=MoR-vopM1HY
https://boards.developer.apple.com/boards/thread/708282
https://stackoverflow.com/questions/77660771/understanding-build-error-xcode-sandbox-bash30970-deny1-file-read-data

All of them find yourself with the identical answer: setting ENABLE_USER_SCRIPT_SANDBOXING to NO. And it appears to me that there is no different actual answer on the web.
I’ve adopted all of the directions, setting ENABLE_USER_SCRIPT_SANDBOXING to NO, and clear up my mission each time:

rm -rf ~/Library/Caches/CocoaPods
rm -rf ios/Pods
rm -rf ios/Podfile.lock
rm -rf ~/Library/Developer/Xcode/DerivedData/*
cd ios
pod deintegrate
pod setup
pod set up --repo-update

Though it really labored for me, I used to be questioning if there was one other work round whereas leaving ENABLE_USER_SCRIPT_SANDBOXING to YES.

I perceive this error occurs within the constructing course of when Xcode is making an attempt to put in writing recordsdata in a forbidden location, however I actually do not get why this error ought to be taking place in any respect.

I am utilizing the newest variations for ruby, Cocoapods, npm, Xcode, React-native, react-native-config, @rnmapbox/maps, firebase, and so forth.

Might it’s that there’s some form of concern with these variations mixed?
Ought to I downgrade a few of these parts variations?
Ought to I “tamper” with my constructing phases?

I am utilizing ruby “3.3.0”, Xcode 15.4. The sistem is utilizing Cocoapods 1.15.2 though my Gemfile appears to be like like this:

supply 'https://rubygems.org'

# You might use http://rbenv.org/ or https://rvm.io/ to put in and use this model
ruby "3.3.0"

# Cocoapods 1.15 launched a bug which break the construct. We are going to take away the higher
# certain within the template on Cocoapods with subsequent React Native launch.
gem 'cocoapods', '>= 1.13', '< 1.15'
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'

Perhaps this feedback (# Cocoapods 1.15 launched a bug which break the construct. We are going to take away the higher certain within the template on Cocoapods with subsequent React Native launch.) are the important thing?

That is MyPodfile:

# Resolve react_native_pods.rb with node to permit 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!

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

goal 'MyProject' do
  config = use_native_modules!

use_frameworks! :linkage => :static # Added following directions for Firebase https://rnfirebase.io/#altering-cocoapods-to-use-frameworks
$RNFirebaseAsStaticFramework = true # Added following directions for Firebase https://rnfirebase.io/#altering-cocoapods-to-use-frameworks

  use_react_native!(
    :path => config[:reactNativePath],
    # An absolute path to your utility root.
    :app_path => "#{Pod::Config.occasion.installation_root}/.."
  )
  goal 'MyProject-Des' do
    inherit! :full
  finish
  goal 'MyProject-Pre' do
    inherit! :full
  finish

  # MAPBOX START
  pre_install do |installer|
  $RNMapboxMaps.pre_install(installer)
  finish
  # MAPBOX END

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

Thanks lots prematurely!

Leave a Reply

Your email address will not be published. Required fields are marked *