[BUG] Build apple app give an sandbox error
patrickwebvr opened this issue · comments
What happened?
I have make the steps from https://docs.pwabuilder.com/#/builder/app-store
I don't know if this is a setting what I must change or that there is a step not included in the documentation.
When I make a build of the app (Product > Build).
Then I get the following errors:
error: Sandbox: rsync.samba(14723) deny(1) file-write-create /Users/XX/Library/Developer/Xcode/DerivedData/A-cswudsnamigawrdowogbtdnguvdv/Build/Products/Debug-iphoneos/A.app/Frameworks/FirebaseCore.framework/.FirebaseCore.sSaiWd (in target 'A' from project 'A')
error: Sandbox: rsync.samba(14723) deny(1) file-write-create /Users/XX/Library/Developer/Xcode/DerivedData/A-cswudsnamigawrdowogbtdnguvdv/Build/Products/Debug-iphoneos/A.app/Frameworks/FirebaseCore.framework/.Info.plist.tMHnkc (in target 'A' from project 'A')
mkdir -p /Users/XX/Library/Developer/Xcode/DerivedData/A-cswudsnamigawrdowogbtdnguvdv/Build/Products/Debug-iphoneos/A.app/Frameworks
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/XX/Library/Developer/Xcode/DerivedData/A-cswudsnamigawrdowogbtdnguvdv/Build/Products/Debug-iphoneos/FirebaseCore/FirebaseCore.framework" "/Users/XX/Library/Developer/Xcode/DerivedData/A-cswudsnamigawrdowogbtdnguvdv/Build/Products/Debug-iphoneos/A.app/Frameworks"
building file list ... done
FirebaseCore.framework/FirebaseCore
FirebaseCore.framework/Info.plist
rsync: mkstemp "/Users/XX/Library/Developer/Xcode/DerivedData/A-cswudsnamigawrdowogbtdnguvdv/Build/Products/Debug-iphoneos/A.app/Frameworks/FirebaseCore.framework/.FirebaseCore.sSaiWd" failed: Operation not permitted (1)
rsync: mkstemp "/Users/XX/Library/Developer/Xcode/DerivedData/A-cswudsnamigawrdowogbtdnguvdv/Build/Products/Debug-iphoneos/A.app/Frameworks/FirebaseCore.framework/.Info.plist.tMHnkc" failed: Operation not permitted (1)
sent 195517 bytes received 64 bytes 391162.00 bytes/sec
total size is 195254 speedup is 1.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/98ed8ad3-3356-11ee-9b53-aead88ae2785/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
How do we reproduce the behavior?
- Go to Xcode
- Go to Product
- Click on Build
- Get the error
What do you expect to happen?
That the build is successful
What environment were you using?
OS: Mac M2-chip
XCode: 15.3
Additional context
No response
I have solve it.
https://forums.developer.apple.com/forums/thread/727564
In Build Settings, make sure ENABLE_USER_SCRIPT_SANDBOXING (User Script Sandboxing) is set to NO.
When you see not this option select All button (left from Combined)