I keep receiving the following errors when I run previews or builds of my App
error: Sandbox: rsync.samba(3328) deny(1) file-write-create /Users/myname/Library/Developer/Xcode/DerivedData/TESTER-hbrfsmbquzqcrpfrhpzcnelekwor/Build/Intermediates.noindex/Previews/TESTER/Products/Debug-iphonesimulator/TESTER.app/Frameworks/ScrollCounter.framework/_CodeSignature (in target 'TESTER' from project 'TESTER')
error: Sandbox: rsync.samba(3329) deny(1) file-write-create /Users/myname/Library/Developer/Xcode/DerivedData/TESTER-hbrfsmbquzqcrpfrhpzcnelekwor/Build/Intermediates.noindex/Previews/TESTER/Products/Debug-iphonesimulator/TESTER.app/Frameworks/ScrollCounter.framework/.Info.plist.dyIsUH (in target 'TESTER' from project 'TESTER')
error: Sandbox: rsync.samba(3329) deny(1) file-write-create /Users/myname/Library/Developer/Xcode/DerivedData/TESTER-hbrfsmbquzqcrpfrhpzcnelekwor/Build/Intermediates.noindex/Previews/TESTER/Products/Debug-iphonesimulator/TESTER.app/Frameworks/ScrollCounter.framework/.ScrollCounter.p9bsAO (in target 'TESTER' from project 'TESTER')
I just implemented a CocoaPods library called ScrollCounter into it, I have used it before and have it in other projects and it works fine - but now when I try and implement it and then preview my code I get the following sandbox errors.
I've cleaned the build folder, I've started another new project and reinstalled the Pods - my podfile is the same as my other working one (Yes I changed the targets). But no dice. Very confused as to why it works on another project but not in this one and any other that I try and start.
Tried this and had no luck
chmod -R 755 /Users/myname/Documents/TESTER
Setting User Script Sandboxing to No in the PROJECT > BUILD SETTINGS > BUILD OPTIONS was how I resolved this. New to Stack Overflow wasn't sure if you are meant to respond to your own questions.
Also I found that my other project which I push to an online git repo doesn't have the USER Script sandboxing option - I don't know why, but that is why the other file worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With