Availability of libSwiftCore.swiftinterface

At some point in the future, can we look forward to seeing a .swiftinterface file for libSwiftCore (and other system libraries)?

These already exist; they're in $(xcrun -show-sdk-path)/usr/lib/swift. (That's how downloadable toolchains are able to use system Swift libraries.)

2 Likes

I'm not seeing that:
ls /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift/libswiftCore.*
yields:
/Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift/libswiftCore.tbd

cd /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift
ls *.swiftinterface
zsh: no matches found: *.swiftinterface

Yep, they are inside swiftmodule folders, and named for the module (Swift) rather than the library (libswiftCore).

1 Like
Terms of Service

Privacy Policy

Cookie Policy