xcode 12.0.1 - clean faild

I got this error when i clean my project in xcode.

Showing All Messages
Could not delete /usr/local/lib because it was not created by the build system and it is not a subfolder of derived data.

anyone has suggestions?
please help me

best regards
I tried a clean and option-clean on a project with XCode 12 (Version 12.0 (12A7208)). Works OK.

What is the consequence of this error for you ?

I get this error when my Build Location Xcode preference is set to Custom -> Relative to Workspace. Changing my Build Location Xcode preference to Unique (i.e. the Build Location is in a unique subfolder of Xcode's Derived Data location) makes the error go away. I wish I could keep my Build Location as Relative to Workspace!

In some projects, despite changing my Build Location Xcode preference, I had to do a one-time manual deletion of the old build directory before the clean started working in the new build directory.

xcode 12.0.1 - clean faild
 
 
Q