Capacitor + firebase breaks xcode cloud build due to nanopb/build

I’m trying to get our capacitor app to build using xcode cloud. When I run the npx cap sync I eventually get an error that says

error: Could not delete `/Volumes/workspace/DerivedData/SourcePackages/checkouts/nanopb/build` because it was not created by the build system.

        note: To mark this directory as deletable by the build system, run `xattr -w com.apple.xcode.CreatedByBuildSystem true /Volumes/workspace/DerivedData/SourcePackages/checkouts/nanopb/build` when it is created.

Because this directory was created on the server, I don’t have sudo access to delete it. Has anyone else run into this?

1 Like

Facing same issue.
Have you got the solution?