[{"data":1,"prerenderedAt":158},["ShallowReactive",2],{"blog-post-/blog/failed-to-build-ios-app/":3},{"id":4,"title":5,"body":6,"description":132,"extension":133,"meta":134,"navigation":152,"path":153,"seo":154,"sitemap":155,"stem":156,"__hash__":157},"content/blog/failed-to-build-ios-app.md","Failed to Build iOS App Error (Xcode): Sandbox Fix",{"type":7,"value":8,"toc":119},"minimark",[9,14,19,23,27,31,35,40,43,47,95,99,106,110],[10,11,13],"h1",{"id":12},"failed-to-build-ios-app-error-xcode-sandbox","Failed to Build iOS App Error (Xcode): Sandbox",[15,16,18],"h3",{"id":17},"error-xcode-sandbox-rsyncsamba1885-deny1-file-write-create","Error (Xcode): Sandbox: rsync.samba(1885) deny(1) file-write-create",[15,20,22],{"id":21},"error-xcode-sandbox-dart1863-deny1-file-write-create","Error (Xcode): Sandbox: dart(1863) deny(1) file-write-create",[15,24,26],{"id":25},"error-xcode-flutter-failed-to-write-to-a-file-at","Error (Xcode): Flutter failed to write to a file at",[15,28,30],{"id":29},"could-not-build-the-application-for-the-simulator","Could not build the application for the simulator.",[32,33,34],"p",{},"If you're a Flutter developer building an iOS application and you've encountered these error messages in Xcode, you're not alone. Here is the simple solution.",[36,37,39],"h2",{"id":38},"the-error-explained","The Error Explained",[32,41,42],{},"The error messages indicate a problem with file-write permissions during the Flutter iOS build process. Xcode's sandboxing is blocking Flutter from writing necessary files.",[36,44,46],{"id":45},"the-solution","The Solution",[48,49,50,54,62,68,75,82,92],"ol",{},[51,52,53],"li",{},"Open Xcode and load your iOS project.",[51,55,56,57,61],{},"In the project navigator, locate the ",[58,59,60],"strong",{},"Runner"," folder.",[51,63,64,65,67],{},"Click on ",[58,66,60],{}," to select it.",[51,69,70,71,74],{},"Open the ",[58,72,73],{},"Build Settings"," tab for the Runner target.",[51,76,77,78,81],{},"In the search bar, type ",[58,79,80],{},"User Script Sandboxing",".",[51,83,84,85,88,89,81],{},"Change the value from ",[58,86,87],{},"Yes"," to ",[58,90,91],{},"No",[51,93,94],{},"Save your changes and rebuild.",[36,96,98],{"id":97},"why-this-works","Why This Works",[32,100,101,102,105],{},"Changing \"User Script Sandboxing\" to ",[103,104,91],"code",{}," disables sandboxing for user scripts, allowing Flutter to write necessary files without permission issues.",[36,107,109],{"id":108},"conclusion","Conclusion",[32,111,112,113,115,116,118],{},"By changing the ",[58,114,80],{}," option to ",[103,117,91],{}," in Xcode Build Settings, you can resolve the sandbox file-write error and successfully build your Flutter iOS application.",{"title":120,"searchDepth":121,"depth":121,"links":122},"",2,[123,125,126,127,128,129,130,131],{"id":17,"depth":124,"text":18},3,{"id":21,"depth":124,"text":22},{"id":25,"depth":124,"text":26},{"id":29,"depth":124,"text":30},{"id":38,"depth":121,"text":39},{"id":45,"depth":121,"text":46},{"id":97,"depth":121,"text":98},{"id":108,"depth":121,"text":109},"Fix the 'Failed to build iOS app Error (Xcode): Sandbox: rsync.samba deny file-write-create' error in Flutter. Simple solution by disabling User Script Sandboxing in Xcode.","md",{"author":135,"date":136,"image":137,"category":138,"tags":139,"featured":151,"draft":151},"Aysegul Karadan","2023-10-29T10:00:00.000Z","/img/flutter-error/flutter.png","Programming",[140,141,142,143,144,145,146,147,148,149,150],"flutter","ios","xcode","troubleshooting","flutter-ios-build-error","xcode-sandbox-error","failed-to-build-ios-app","user-script-sandboxing","flutter-xcode-fix","sandbox-rsync-deny","how-to-fix-flutter-ios-error",false,true,"/blog/failed-to-build-ios-app",{"title":5,"description":132},{"loc":153},"blog/failed-to-build-ios-app","N4HPOO-dJNOB7MUPyy8-bVHrilE6cmhEi8DrmTDWtBU",1782986781100]