libcodedirectory.dylib  missing in /usr/lib in Xcode 12.2 beta3 Command Line Tools

install_name_tool, strip are broken in Xcode 12.2 beta3 Command Line Tools

I am getting
Code Block
dyld: Library not loaded: @rpath/libcodedirectory.dylib
Referenced from: /Library/Developer/CommandLineTools/usr/bin/install_name_tool
Reason: image not found

and a very similar error with strip.

A workaround - creating a link, like this:
Code Block
% ls -l /usr/local/lib/libcodedirectory.dylib 
/usr/local/lib/libcodedirectory.dylib -> /Applications/Xcode-beta.app/Contents//Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libcodedirectory.dylib

fixes these errors.

Is this a known bug?


Thanks for the report Dima! I've forwarded this issue to the relevant team.

Please file a bug report via the Feedback Assistant application or https://feedbackassistant.apple.com/ and include a link to this forum post, then post the feedback ID here if you'd like to be notified when this issue is fixed.

Thanks again for your detailed report.
libcodedirectory.dylib  missing in /usr/lib in Xcode 12.2 beta3 Command Line Tools
 
 
Q