<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="">I don't think swift-ide-test is installed by default, but it should still be in your build directory. It's part of the "tools" component if you want to customize your install components.</div><div class=""><br class=""></div><div class="">Jordan</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 14, 2016, at 6:22, qibo &lt;<a href="mailto:qibo_cn@outlook.com" class="">qibo_cn@outlook.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Thanks very much for replying.<div class="">My OS is Ubuntu 14.04, I build swift on it, but there is no swift-ide-test on install directory.</div><div class="">Does this tool could use in Ubuntu 14.04?</div><div class="">Brs</div><div class="">Bob<br class=""><br class=""><div class=""><hr id="stopSpelling" class="">Subject: Re: [swift-users] what's in the file of .swiftmodule?how to open it?<br class="">From: <a href="mailto:jordan_rose@apple.com" class="">jordan_rose@apple.com</a><br class="">Date: Tue, 12 Jan 2016 10:06:04 -0800<br class="">CC: <a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">To: <a href="mailto:qibo_cn@outlook.com" class="">qibo_cn@outlook.com</a><br class=""><br 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" target="_blank" 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="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.<span class="Apple-converted-space">&nbsp;</span><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 class=""><blockquote 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="ecxApple-interchange-newline"><div class=""><div style="margin: 0px; padding: 0px;" class="">as title.</div><div style="margin: 0px; padding: 0px;" class="">Best<br class="">Bob<br class=""></div><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: 0px !important; padding: 0px !important;" class=""><span class="Apple-converted-space">&nbsp;</span>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a></div></blockquote></div></div></div></div></div></blockquote></div><br class=""></body></html>