diff --git a/detox/local-cli/utils/frameworkUtils.js b/detox/local-cli/utils/frameworkUtils.js index f8b6786830..5b82978c87 100644 --- a/detox/local-cli/utils/frameworkUtils.js +++ b/detox/local-cli/utils/frameworkUtils.js @@ -63,7 +63,7 @@ async function clean(framework, xcuitest) { const shouldCleanBoth = !framework && !xcuitest; if (framework || shouldCleanBoth) { - await removeTarget(getXCUITestRunnerDirPath, 'Detox framework'); + await removeTarget(getFrameworkDirPath, 'Detox framework'); } if (xcuitest || shouldCleanBoth) {