<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi, Bob. A swiftmodule file contains serialized ASTs (and possibly SIL)—it's basically a binary file format equivalent to header files for a C framework or library. There's some more information available in&nbsp;<a href="https://github.com/apple/swift/blob/master/docs/Serialization.rst" class="">Serialization.rst</a>&nbsp;in the compiler docs.</div><div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">swift-ide-test -print-module -source-filename=dummy.swift -module-to-print=<u class="">MyApp</u></div></blockquote><div class=""><br class=""></div><div class="">…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.</div><div class=""><br class=""></div><div class="">Hope that helps,</div><div class="">Jordan</div><div class=""><br class=""></div><div class="">P.S. This is something we should make easier to do outside of Xcode. <i class="">In</i>&nbsp;Xcode, you can "Jump to Definition" on an import to see the same public interface.</div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Jan 11, 2016, at 17:57, qibo_cn--- via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">as title.</p><p dir="ltr" class="">Best<br class="">
Bob<br class=""></p>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=ZEz4qHYnXhPr3bBPu-2FxP4tN3HfWKL-2FtJpqkQ0gkOVSA7awrdUkY-2Bw-2F-2FX2K1yW9K2Fz0GefZmQ5cLYQRHdK5d12WSH-2BfUbbstltWoxoWYUW7ocQQzuTT5nxwLTabYuWMumuuR7n7fLghERd-2F9kVTbJ7FNooMZpqNWPlozWJ3ckZx6oLSZfmumRVJqRlnvNLyhhRJyP3tfurmJaAJN7stF39dmT7idoKaPiRiPKwup3Ss-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>