I want to check a public content of a .swiftmodule
file from an iOS framework.
Here (https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20160111/000827.html) I've found a suggestion to use swift-ide-test
:
You can use the swift-ide-test tool to dump the public interface for a module, but the command-line interface is less pretty than it should be:
swift-ide-test -print-module -source-filename=dummy.swift -module-to-print=MyApp
…plus any -I or -F paths necessary to find your module and all its dependencies. If you're on a Mac, you'll need to insert "xcrun -sdk macosx" or "xcrun -sdk iphoneos" at the start to find the system headers.
Unfortunately, when I try to run xcrun -sdk iphoneos swift-ide-test
with Xcode 10.1, I get following error:
$ xcrun -sdk iphoneos swift-ide-test
xcrun: error: unable to find utility "swift-ide-test", not a developer tool or in PATH
Seems that this tool was removed from Xcode.
Any other ideas on how to open a .swiftmodule
file?