Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cleaning project fails with exit 65 , unable to wipe iOS build artifacts #104

Open
dillonkuester opened this issue Dec 27, 2022 · 0 comments

Comments

@dillonkuester
Copy link

dillonkuester commented Dec 27, 2022

`
ℹ️ STARTED: "watchman cache clear (if watchman is installed)"
✅ FINISHED: "watchman cache clear (if watchman is installed)" task has finished running in 102ms.

ℹ️ STARTED: "wipe temporary caches"
✅ FINISHED: "wipe temporary caches" task has finished running in 21ms.

ℹ️ STARTED: "wipe iOS build artifacts"
/Users/me/repos/MobileApp/node_modules/react-native-clean-project/source/internals/executor.js:40
throw new Error(
^

Error:

Task "wipe iOS build artifacts"
Error: No matching processes belonging to you were found
** CLEAN FAILED **

.
Exit code: 65

at executeTask (/Users/me/repos/Mobile-App/node_modules/react-native-clean-project/source/internals/executor.js:40:11)
at async main (/Users/me/repos/Mobile-App/node_modules/react-native-clean-project/source/index.js:23:5)

Node.js v19.3.0`

Under the hood the wipe iOS build artifacts command is running:

'rm -rf ios/build && (killall Xcode || true) && xcrun -k && cd ios && xcodebuild -alltargets clean && cd .. && rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" && rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" && rm -fr ~/Library/Developer/Xcode/DerivedData/ && rm -fr ~/Library/Caches/com.apple.dt.Xcode/',

and output when running this command error:

Could not delete /Users/me/repos/Mobile-App/ios/buildbecause it was not created by the build system. note: To mark this directory as deletable by the build system, runxattr -w com.apple.xcode.CreatedByBuildSystem true /Users/me/repos/Mobile-App/ios/buildwhen it is created. error: Could not delete/Users/me/repos/Mobile-App/ios/buildbecause it was not created by the build system. note: To mark this directory as deletable by the build system, runxattr -w com.apple.xcode.CreatedByBuildSystem true /Users/me/repos/Mobile-App/ios/build when it is created.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant