Код: Выделить всё
error: Sandbox: rsync.samba(76010) deny(1) file-write-create /Users/lluis/Library/Developer/Xcode/DerivedData/MyProject-dlpddtwcucwpygcxhthjwisifahq/Build/Products/Debug-iphonesimulator/MyProject-Des.app/Frameworks/MapboxMaps.framework/MapboxMapsResources.bundle (in target 'MyProject-Des' from project 'MyProject')
error: Sandbox: rsync.samba(76011) deny(1) file-write-create /Users/lluis/Library/Developer/Xcode/DerivedData/MyProject-dlpddtwcucwpygcxhthjwisifahq/Build/Products/Debug-iphonesimulator/MyProject-Des.app/Frameworks/MapboxMaps.framework/.Info.plist.7j5Zxx (in target 'MyProject-Des' from project 'MyProject')
error: Sandbox: rsync.samba(76011) deny(1) file-write-create /Users/lluis/Library/Developer/Xcode/DerivedData/MyProject-dlpddtwcucwpygcxhthjwisifahq/Build/Products/Debug-iphonesimulator/MyProject-Des.app/Frameworks/MapboxMaps.framework/.MapboxMaps.rIRQea
https://stackoverflow.com/questions/765 ... ile-build- ios-app-in-xcode-sandbox-rsync-mamba-13105-deny1-file-w
https://forums.developer.apple.com/forums/thread/759995
https: // www.youtube.com/watch?v=mor-vopm1hy
https://forums.developer.apple.com/forums/thread/708282
https://stackoverflow.com/questions/7760771/ Понимание Build-error-xcode-sandbox-bash30970-deny1-file-read-data
Все они в конечном итоге получают одно и то же решение: Настройка enable_user_script_sandboxing на нет . И мне кажется, что в сети нет другого реального решения. p>
Код: Выделить всё
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 install --repo-update
Я понимаю, что эта ошибка происходит в процессе строительства, когда Xcode пытается писать файлы в локации < /em>, но я действительно не понимаю, почему эта ошибка должна происходить вообще. /p>
Может ли быть, что есть какая -то проблема с этими версиями в объединенных? Фазы? < /p>
Я использую Ruby "3.3.0", Xcode 15.4. Sistem использует кокопод 1.15.2, хотя мой Gemfile выглядит так: < /p>
Код: Выделить всё
source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby "3.3.0"
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
# bound in the template on Cocoapods with next React Native release.
gem 'cocoapods', '>= 1.13', '< 1.15'
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
Это mypodfile: < /p>
Код: Выделить всё
# 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!
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 'MyProject' do
config = use_native_modules!
use_frameworks! :linkage => :static # Added following instructions for Firebase https://rnfirebase.io/#altering-cocoapods-to-use-frameworks
$RNFirebaseAsStaticFramework = true # Added following instructions for Firebase https://rnfirebase.io/#altering-cocoapods-to-use-frameworks
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'MyProject-Des' do
inherit! :complete
end
target 'MyProject-Pre' do
inherit! :complete
end
# MAPBOX START
pre_install do |installer|
$RNMapboxMaps.pre_install(installer)
end
# MAPBOX 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
)
# MAPBOX START
$RNMapboxMaps.post_install(installer)
# MAPBOX END
end
end
Подробнее здесь: https://stackoverflow.com/questions/788 ... -write-cre