diff --git a/nix/pkgs/xcodeenv/compose-xcodewrapper.nix b/nix/pkgs/xcodeenv/compose-xcodewrapper.nix index afdb21b73e..c277d36018 100644 --- a/nix/pkgs/xcodeenv/compose-xcodewrapper.nix +++ b/nix/pkgs/xcodeenv/compose-xcodewrapper.nix @@ -8,6 +8,9 @@ assert stdenv.isDarwin; stdenv.mkDerivation { name = "xcode-wrapper-${version}${if allowHigher then "-plus" else ""}"; + # Fix 'xcodebuild: Operation not permitted' when 'sandbox=relaxed' is used. + # https://github.com/NixOS/nixpkgs/pull/228696 + __noChroot = stdenv.isDarwin; buildCommand = '' mkdir -p $out/bin cd $out/bin