Posts

Post marked as solved
68 Views

Obtaining latest compiled binaries for cctools

Are the binaries from more recent versions of cctools available somewhere on the internet to download? With the command line tools from Xcode 12, install_name_tool -id stores the current timestamp (to 1 second resolution) in the file even when I have exported ZERO_AR_DATE=1. However, when I download cctools-973 - https://opensource.apple.com/release/developer-tools-120.html, and build my own version of install_name_tool without any modifications, then the new binary does not have this behavior. On looking at the source code all the way up to cctools-410, I notice comments (see comments for line #undef OUTPUT_OPTION in this file) - https://opensource.apple.com/source/cctools/cctools-410.1/misc/install_name_tool.c.auto.html hinting that this behavior was fixed at some point. Given that install_name_tool does not have version information, it is hard to say which version of cctools is currently shipping with Xcode. To reproduce the behavior I mentioned above that is observed with cctools from Xcode CLT, but not with the open source versions: $ cat foo.c void a() {} $ clang -g -c foo.c -o foo.o $ clang -dynamiclib -o foo.so foo.o $ shasum foo.so $ for attempt in {1..4}; do sleep 1 && install_name_tool -id "foo.so" foo.so && shasum foo.so; done
Asked
Last updated .
Post marked as solved
6.7k Views

Missing library libsystem_darwin after Xcode 9

I am trying to link against xml2 by getting the flags from `xml2-config`.$ xml2-config --libs-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib -lxml2 -lz -lpthread -licucore -lmIn this directory I see corresponding .tbd files for each of the libraries, but some .tbd files refer to `/usr/lib/system/libsystem_darwin.dylib` in their re-exports section. The problem is that this file is missing in /usr/lib/system.If I match the files in /usr/lib/system/ and the system/ directory inside the above directory, I see libcorecrypto_trace.dylib missing as well.Does anyone what is happening here?
Asked
Last updated .