<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Turns out that SourceKit works well in either case - it was mistake from my side. When SourceKit cannot resolve all of the symbols(dependent frameworks are not available) it fails and it was the case. After fixing this everything works as expected.
<div><br /></div>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
On 19 Jul 2017, 19:49 +0200, Kacper Harasim via swift-dev &lt;swift-dev@swift.org&gt;, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<div>Hi All,</div>
<div>I want to parse interfaces of frameworks containing Swift code. I've done it for Objective-C ones using&#160;</div>
<div>`source.request.editor.open.interface` request of SourceKit(it works great!), but apparently it doesn’t work for Swift interfaces frameworks - returns empty results. What's the intended way of doing this task with SourceKit? Should I add some compiler flag to support it that way?</div>
<div><br /></div>
<div>I've found that this task is achievable using `swift-ide-test` tool based on this mail: https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20160111/000827.html &#160;Because it's not currently available in standard Swift toolchain - it's not a perfect solution for me. I’m building a tool based on that, `.swiftmodule` files are not stable and shipping swift-ide-test binaries for every Swift toolchain would be a lot of headache.</div>
<div><br /></div>
<div>Thank you for the help!</div>
<div><br /></div>
<div>Regards,</div>
<div>Kacper</div>
</div>
_______________________________________________<br />
swift-dev mailing list<br />
swift-dev@swift.org<br />
https://lists.swift.org/mailman/listinfo/swift-dev<br /></blockquote>
</div>
</body>
</html>