while building iOS app on Xcode I got these 2 errors, I tried to build the iOS on visual studio code and I got the same errors. the operating system macOS 14.0 beta. processor M1 Pro

Could downgrading the operating system fix that issue?
while building iOS app on Xcode I got these 2 errors, I tried to build the iOS on visual studio code and I got the same errors. the operating system macOS 14.0 beta. processor M1 Pro

Could downgrading the operating system fix that issue?
In Xcode, go to your project's Build Settings menu. In the Build Options section, set the property ENABLE_USER_SCRIPT_SANDBOXING to 'No'.
@hasayakey 's answer worked for me, but I wanted to add some extra info about how to find this setting.
To find the 'ENABLE_USER_SCRIPT_SANDBOXING' go to the Search icon tab in the left hand panel within Xcode. Ensure you are searching within the 'Runner' workspace, configured the search to ignore text and then press enter to search with text 'ENABLE_USER_SCRIPT_SANDBOXING'.
In Xcode 14/15, the result should look like this:
Alternatively, you can navigate to this setting by going to:
Xcode > Project > Runner > Build Settings > Build Options > User Script Sandboxing (near the bottom of build options)
In my case, after integration of Cleverpush SDK, I got the issue.
In the iOS project, in the XCode I had to do the next steps:
Turning it off (setting to No) doesn't fix issues for my Flutter project; I got another set of similar errors.
I got the solution following these steps:
Flutter clean, then Flutter pub getpod install from the terminal (inside ios folder)Ever since the release of a new xcodeproj ruby gem version 1.26.0 on 27th Oct 2024, we started seeing rsync.samba errors on our Xcode projects when we were building using Xcode 15.x.
The solution for this was to explicitly add a version lock to xcodeproj version 1.25.0 in our project's Gemfile.
gem 'xcodeproj', '1.25.0'
Or update to a cocoapods version > 1.16.1:
gem 'cocoapods', '>= 1.16.1'
Post this change we need to run:
bundle install to update local gems for this project.bundle exec pod install to regenerate Pods.xcodeproj(If you are not using Gemfile or bundler to manage gems, check the version of locally installed xcodeproj version using xcodeproj --version. And uninstall the 1.26.0 version using gem uninstall xcodeproj (This uninstallation is only required if we are unable to update to 1.16.1 cocoapod release.))
xcodeproj gem to generate a Pods.xcodeproj/project.pbxproj file.ENABLE_USER_SCRIPT_SANDBOXING setting to YES for most of the Pod targets for Xcode 16 compatibility. (Github PR)YES, which helps resolve rsync.samba build errors on Xcode 15.Xcode 16, it is not recommended to lock xcodeproj gem to 1.25.0 as projects which depend on Cocoapods can start failing.EDIT:
Cocoapods 1.16.1 release is out as well. Updating to this version should help resolve the issue as well. (Make sure to remove gem 'xcodeproj', '1.25.0' in Gemfile to install this version)
In case ENABLE_USER_SCRIPT_SANDBOXING is already set to NO, and you are still receiving the error, then:
cd ~/Library/Developer/Xcode/DerivedData in terminalrm -rf <name>*xcrun simctl delete unavailablecd <project>/ios and pod installSetting permissions to 777 using chmod, is a no-no and also unnecessary.
A solution for someone who uses CocoaPods as Package manager:
To resolve properly without set ENABLE_USER_SCRIPT_SANDBOXING = No, first you need to comment in the Podfile the command use_frameworks!, i.e. leaving it out (in this way you be able to set in Build Phases -> Link Binary with Libraries the libPods-namePod.a instead of namePod.framework) then run pod install and finally build and run.
//:configuration = Debug
ENABLE_USER_SCRIPT_SANDBOXING = NO
//:configuration = Release
ENABLE_USER_SCRIPT_SANDBOXING = NO
//:completeSettings = some
ENABLE_USER_SCRIPT_SANDBOXING
This method worked for me.
In XCode 15.1 I was having same problem.
I deleted Homebrew, and then reinstalled it, reinstalled cocoapods, and then installed pods, and it worked.