-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User Script Sandboxing Misconfigured in default React Native project #47228
Comments
I tried forcing Cocoapods to version |
Interesting... this should not happen with a new app created with the template. In this case, we highlighted that step here in the Integrating with Existing Apps guide. |
Which version of Xcode are you using? |
Dealing with exactly the same issue using Xcode 15.4 and Cocoapods versions 1.15.2. The |
I'm on Xcode 16.0/16A242d I'll try a new Expo project and then a CLI project with version 0.75 and see if I run into the same problems. Will report back shortly. |
With Then I ran: npx expo prebuild
cd ios
open testappforuserpermissions.xcworkspace/ Building that from Xcode worked as expected. Here is the System:
OS: macOS 14.6
CPU: (16) arm64 Apple M3 Max
Memory: 229.86 MB / 48.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.9.0
path: ~/.asdf/installs/nodejs/22.9.0/bin/node
Yarn:
version: 1.22.22
path: ~/.asdf/shims/yarn
npm:
version: 10.8.3
path: ~/.asdf/plugins/nodejs/shims/npm
Watchman:
version: 2024.09.30.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/tylerwilliams/.asdf/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.21829.142.2421.12409432
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.12
path: /usr/bin/javac
Ruby:
version: 3.3.4
path: /Users/tylerwilliams/.asdf/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false Will try a CLI project on 0.75.x next. |
Then I ran Afterwards, ran:
That got me similar errors:
Same build failures when running via Xcode. Perhaps this is a problem with |
Ran: npx @react-native-community/cli@14.1.0 init olderclitest --version 0.75.4
# Selected Yes to install CocoaPods during setup
cd olderclitest/
npx react-native run-ios Similar errors: ❌ error: Sandbox: rsync.samba(75818) deny(1) file-write-create /Users/tylerwilliams/Library/Developer/Xcode/DerivedData/olderclitest-fpvnjkwfdzckavetrxxfbiticefi/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/hermes-engine/Pre-built/hermes.framework/.Info.plist.wFiuSv (in target 'hermes-engine' from project 'Pods')
❌ error: Sandbox: rsync.samba(75818) deny(1) file-write-create /Users/tylerwilliams/Library/Developer/Xcode/DerivedData/olderclitest-fpvnjkwfdzckavetrxxfbiticefi/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/hermes-engine/Pre-built/hermes.framework/.hermes.1y2kb2 (in target 'hermes-engine' from project 'Pods') Maybe it's an environment thing, although it's strange that Expo worked fine, even while building with Xcode. |
I have the exact same problem. |
Same problem, but I cannot bypass since |
That is also my problem, it is disabled, but still gives me problems. Why? |
same problem to my Github Action Runner, I can still build the app manually from my machine. |
Maybe |
I can just speak for myself, but i deleted and re-installed pods again. So how can that happen? And also, mine is totally new - i did not do anything else then making a React-Native app. So just for checking what was wrong with my "old" since that had the same problem I started a new one. And it automatically have the same problem? |
all my targets are disabled |
Came across RN-Reanimated's action runners, which have been failing since yesterday as well (exact same rsync.samba issue). Currently upgrading Xcode and will try some things afterwards https://github.com/software-mansion/react-native-reanimated/actions/runs/11543283561 |
Good suggestion, but didn't work |
It's started yesterday as well. it worked saturday, but yesterday problems all over with rsync.sandbox. |
I got the same issue, I'm getting errors from
|
in our case, the problem is related to the latest release of xcodeproj (1.26.0) ruby library
|
Yes, our CI is red as well. I'll pin the gem to the right value in the Gemfile, we will release 0.76.1 today. cc. @blakef @cortinico -- @krystofwoldrich I don't think that the two are related. The sandbox scripting prevents for scripts to run. In your error, the script is running but it fails to open the tarball. So you might missing the tarball or there might be something else going on. |
@helloagain-dev great find, works like a charm 👏 |
Opened a issue here: CocoaPods/Xcodeproj#989 |
@cipolleschi Thanks, yes, it was unrelated. Cleaning my |
@cipolleschi thanks, you saved my life |
Fixed in #47237 |
Able to unblock with the same error by explicitly setting the flag as NO in podfile
|
Hello everyone, i want to know if this is some sort of new problem, i only push my latest update to github yesterday and since then have been experiencing this error Sandbox: mkdir(19746) deny(1) file-write-create /Users/olawaleabosede/Library/Developer/Xcode/DerivedData/My750hrstracker-erjbkgyqqlopoegusonsambuhznx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-rncore.build/DerivedSources/generated |
For anyone like me whose CI environment upgraded underneath you and broke your RN builds, this gets the job done:
I didn't have a Gemfile in the repo at all so that approach didn't help me much. |
This worked for me thank you. |
Updating to From the changelog:
|
@krystofwoldrich I can confirm that with CocoaPods 1.6.1, it works! |
@alexma01 can you provide your Gemfile? Did you remove gem 'xcodeproj', '< 1.26.0' and set gem cocoapods, 1.6.1? |
thank you, this helps with cocoapods version 1.15.2 |
Added both these files in my Gemfile but same error:
|
@SaadBinWaheed-og cocoapods 1.16 requires xcodeproj 1.26, here we solved adding this line on the gemfile:
|
You are a legend. This worked for me. Thank you! |
uninstalling xcodeproj version 1.26.0 works for me. ~
|
xcodeproj-1.25.1 works for me. I had to uninstall all versions using: Then install 1.25.1: |
1.25.x is fine. |
Thanks |
updating the Pod version to the latest fix the issue
|
Description
When I attempt to follow the Fabric Native Component guide in the React Native docs, I encountered errors that look like:
At first I thought this might come from setting up new groups in Xcode as per the directions. But I found this error is reproduced even after running:
npx @react-native-community/cli@latest init PlainRN cd PlainRN yarn run ios
I'm able to get the issue fixed if I change the setting through Xcode in the Pods project:
I'm filing this under the New Architecture bug report since it showed up first for me when trying to do Codegen for Fabric Native components, and the source of the error is coming from the ReactCodegen target in the Pods project. It's not entirely clear to me if this is a codegen issue or maybe some upstream problem with Cocoapods configuration. I found some related issues in Cocoapods. I see in the
Gemfile
that some prior versions of Cocoapods are excluded:Perhaps we also need to exclude
1.15.2
, which is what you'll see in mynpx react-native info
output.Steps to reproduce
npx @react-native-community/cli@latest init PlainRN cd PlainRN yarn run ios
React Native Version
0.76.0
Affected Platforms
Build - MacOS
Areas
Fabric - The New Renderer, Codegen
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/coolsoftwaretyler/reproducer-user-sandbox-error
Screenshots and Videos
The text was updated successfully, but these errors were encountered: