<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks very much for replying.<div>My OS is Ubuntu 14.04, I build swift on it, but there is no swift-ide-test on install directory.</div><div>Does this tool could use in Ubuntu 14.04?</div><div>Brs</div><div>Bob<br><br><div><hr id="stopSpelling">Subject: Re: [swift-users] what's in the file of .swiftmodule?how to open it?<br>From: jordan_rose@apple.com<br>Date: Tue, 12 Jan 2016 10:06:04 -0800<br>CC: swift-users@swift.org<br>To: qibo_cn@outlook.com<br><br><div>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 <a href="https://github.com/apple/swift/blob/master/docs/Serialization.rst" target="_blank">Serialization.rst</a> in the compiler docs.</div><div><br></div><div>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><br></div><blockquote style="border:none;padding:0px;"><div>swift-ide-test -print-module -source-filename=dummy.swift -module-to-print=<u>MyApp</u></div></blockquote><div><br></div><div>¡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><br></div><div>Hope that helps,</div><div>Jordan</div><div><br></div><div>P.S. This is something we should make easier to do outside of Xcode. <i>In</i> Xcode, you can "Jump to Definition" on an import to see the same public interface.</div><div><br></div><div><br></div><div><blockquote><div>On Jan 11, 2016, at 17:57, qibo_cn--- via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:</div><br class="ecxApple-interchange-newline"><div><p dir="ltr">as title.</p><p dir="ltr">Best<br>
Bob<br></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;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;">
_______________________________________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>https://lists.swift.org/mailman/listinfo/swift-users<br></div></blockquote></div><br></div></div>                                            </div></body>
</html>