Xcode 15 beta build issues


Sandbox: rsync.samba(12698) deny(1) file-write-create /Users/shrek/Library/Developer/Xcode/DerivedData/PhotoPC-dejmlgrmwbxazrgvfwpxvhadwsuy/Build/Products/Debug-iphonesimulator/PhotoPC.app/Frameworks/Alamofire.framework/.Alamofire.ihLdr1

Sandbox: rsync.samba(12698) deny(1) file-write-create /Users/shrek/Library/Developer/Xcode/DerivedData/PhotoPC-dejmlgrmwbxazrgvfwpxvhadwsuy/Build/Products/Debug-iphonesimulator/PhotoPC.app/Frameworks/Alamofire.framework/.Info.plist.vn2fty
![]("https://developer.apple.com/forums/content/attachment/fb5c4e33-9603-4c87-9f39-aab81475dbf9" "title=Screenshot 2023-06-07 at 00.48.08.png;width=1429;height=232")

Please help me.

Got the same issue here. Any help appreciated

I have the same error can anyone help us?

Same here

Cannot compile my code anymore

Sandbox: rsync(37768) deny(1) file-write-create /Users...../Build/Debug-iphoneos/MyApp.app/Frameworks/InputBarAccessoryView.framework/.Info.plist.nd7plo

Check that ENABLE_USER_SCRIPT_SANDBOXING is disabled in the project's build settings.

99

Works for me! Thanks a lot, @q2r5!!!!!!!!!

Disabling 'User Script Sandboxing' under the Project's Build Settings > Build Options fixed the issue for me as well! Thanks!

cocoa pods need to update a lot of issues .

  1. Delete derived
  2. Clean build folder
  3. pods deintegrate
  4. pods install
  5. source="$(readlink -f "${source}")"
  6. User Script Sandboxing' under the Project's Build Settings >

worked for me

NXOAuth2.0 Client unfortunately still doesn't work on Xcode 15.

Thanks! it worked.

The fix if you want to keep ENABLE_USER_SCRIPT_SANDBOXING enabled is to add the files as inputs and outputs. I use a script to set the build number in the build info plist file. I just need to set "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" as an output of the script

build setting ENABLE_USER_SCRIPT_SANDBOXING was added in Xcode 14 but enabled in the update to recommend setting in Xcode 15

From the Xcode 14 Release Notes:

You can now enable sandboxing for shell script build phases using the ENABLE_USER_SCRIPT_SANDBOXING build setting. Sandboxing blocks access to files inside the source root of the project as well as the Derived Data directory unless you list those files as inputs or outputs. When enabled, the build fails with a sandbox violation if a script phase attempts to read from or write to an undeclared dependency, preventing incorrect builds.

Thanks to Daniel Jalket's Blog Post: Xcode Build Script Sandboxing - https://indiestack.com/2023/06/xcode-build-script-sandboxing/

@q2r5, Worked for me, too. Thank you for your information.

"Check that ENABLE_USER_SCRIPT_SANDBOXING is disabled in the project's build settings.". It works perfectly, thanks a lot

Hello , User script sandboxing - > Set " No " Did the job for me , Hope this help someone ..Happy Coding ....

Hey guys,

does anyone have another suggestion for the solution? Unfortunately, ENABLE_USER_SCRIPT_SANDBOXING = NO didn't work for me. Actually, it was already set to NO.

I just got a new MacBook, upgraded it to macOS Sonoma, installed Xcode, cloned a project from GitHub, installed Pods, and I'm constantly getting this error for multiple pods (i.e. IronSourceSDK, InMobiSDK, MintegralAdSDK).

On my other mac (using macOS Ventura) I never got this kind of issue.

Any suggestion is welcome... Thanks!

This fixed an issue for me where gradle couldn't build the iOS framework for my Kotlin Multiplatform Mobile app.

This way worked for me as well.

Works great! Thanks for the save :)

This doesn't seem to work for me. When I do that I get "Command PhaseScriptExecution failed with a nonzero exit code"

In my case I needed to update homebrew 'brew update'

Updated Ruby to a version >= 2.7.0 'brew install ruby'

Homebrew Ruby to PATH. Find the directory with 'which ruby' and replace the file names to your .zshrc or ~/.bash_profile OR ~/.bashrc file. (export PATH="/usr/local/opt/ruby/bin:$PATH")

Reload your SHELL config 'source ~/.bash_profile'

Be sure to have the right gem 'sudo gem install cocoapods' I used 'gem update --system 3.5.1'

Navigate to the ios/ directory and 'pod install'

Move back to the root directory then run watchman watch-del-all rm -rf $TMPDIR/react-* npx react-native start --reset-cache

Here are full guidance how fix this error in xcode 15 https://youtu.be/sY2ppjU_PM8

Here are detail video https://youtu.be/sY2ppjU_PM8

if you get these errors its very simple just go to project and "Build Settings" then set "User Script Sandboxing" and set to NO then product **=> Clean build Project ** Then run the project.

Worked for me. Check that ENABLE_USER_SCRIPT_SANDBOXING is disabled in the project's build settings.

Above video worked! Thanks.

Xcode 15 beta build issues
 
 
Q