<div dir="ltr">Hey Jim! Anything we can do here to have the toolchain lldb find our simulator?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 7, 2016 at 11:57 AM, Rex Fenley <span dir="ltr"><<a href="mailto:rex@remind101.com" target="_blank">rex@remind101.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Jim!<div><br></div><div>I downloaded the toolchain from the swift website, attached the toolchain to Xcode 8, rebuilt the app, ran the lldb included in the toolchain, but then got stuck trying to select the correct platform and simulator</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>
<p><span>$ /Library/Developer/<wbr>Toolchains/swift-3.0-RELEASE.<wbr>xctoolchain/usr/bin/lldb</span></p></div><div><p><span>(lldb) </span><span>platform select ios-simulator</span></p></div><div><p><span> Platform: ios-simulator</span></p></div><div><p><span> Triple: x86_64h-apple-macosx</span></p></div><div><p><span>OS Version: 10.11.6 (15G1004)</span></p></div><div><p><span> Kernel: Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_<wbr>X86_64</span></p></div><div><p><span> Hostname: 127.0.0.1</span></p></div><div><p><span>WorkingDir: /Users/Rex/Documents/projects/<wbr>swift-lldb</span></p></div><div><p><span> SDK Path: error: unable to locate SDK</span></p></div><div><p><span>No devices are available.</span></p></div></blockquote></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 7, 2016 at 11:30 AM, Rex Fenley <span dir="ltr"><<a href="mailto:rex@remind101.com" target="_blank">rex@remind101.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We're using the `swift-3.0-RELEASE` tag from the swift-lldb github repo to build lldb and we are building our app with Xcode 8. Are these not the same swift versions?<br></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Fri, Oct 7, 2016 at 10:48 AM, Jim Ingham <span dir="ltr"><<a href="mailto:jingham@apple.com" target="_blank">jingham@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This error usually comes from some Swift component in you app not being built with exactly the same Swift compiler as the one that the lldb you are using is built with. For instance, if you are building your own lldb, you have to use the Swift compiler that's built in the process of building lldb.<br>
<br>
If that's not the case we'll need to look at the logs generated by putting:<br>
<br>
log enable -f /tmp/lldb-log.txt lldb expr types<br>
<br>
in your ~/.lldbinit and then running your debug session. These logs can get pretty big so it's better to file a bug and attach these logs to the bug. Note, the logs get overwritten every time you start a debug session, so when you get the failure, grab the logs and add them to the bug you file.<br>
<br>
Thanks,<br>
<br>
Jim<br>
<div><div><br>
> On Oct 6, 2016, at 9:18 PM, Todd Fiala via swift-lldb-dev <<a href="mailto:swift-lldb-dev@swift.org" target="_blank">swift-lldb-dev@swift.org</a>> wrote:<br>
><br>
> Hi Rex,<br>
><br>
><br>
><br>
> On Thu, Oct 6, 2016 at 5:22 PM, Rex Fenley via swift-lldb-dev <<a href="mailto:swift-lldb-dev@swift.org" target="_blank">swift-lldb-dev@swift.org</a>> wrote:<br>
> Hi!<br>
><br>
> I run lldb, platform select ios-simulator, connect to the right simulator and attach to my app and when trying to try to do anything in the repl I get the following kind of error at the bottom for an Abort, please help! The repl works fine in Xcode, not sure why it wouldn't work in this case.<br>
><br>
> (lldb) process attach -n <App Name> --waitfor<br>
><br>
> Process 27857 stopped<br>
><br>
> * thread #1: tid = 0x1eadf9, 0x00007fff6d4ca5e2 dyld`pread + 10, stop reason = signal SIGSTOP<br>
><br>
> frame #0: 0x00007fff6d4ca5e2 dyld`pread + 10<br>
><br>
> dyld`pread:<br>
><br>
> -> 0x7fff6d4ca5e2 <+10>: jae 0x7fff6d4ca5ec ; <+20><br>
><br>
> 0x7fff6d4ca5e4 <+12>: movq %rax, %rdi<br>
><br>
> 0x7fff6d4ca5e7 <+15>: jmp 0x7fff6d4c9c01 ; cerror<br>
><br>
> 0x7fff6d4ca5ec <+20>: retq<br>
><br>
><br>
><br>
> Executable module set to "/Users/Rex/Library/Developer/<wbr>CoreSimulator/Devices/ACC5BC4E<wbr>-C7B1-4635-A591-6BE65F05B7EC/d<wbr>ata/Containers/Bundle/Applicat<wbr>ion/ECA295A8-DB79-4A4A-8ADE-<wbr>0E616CAB0093/<App Name>.app/<App Name>".<br>
><br>
> Architecture set to: x86_64h-apple-ios.<br>
><br>
> (lldb) continue<br>
><br>
> Process 27857 resuming<br>
><br>
> (lldb) process interrupt<br>
><br>
> Process 27857 stopped<br>
><br>
> * thread #1: tid = 0x1eadf9, 0x0000000115929f72 libsystem_kernel.dylib`mach_ms<wbr>g_trap + 10, stop reason = signal SIGSTOP<br>
><br>
> frame #0: 0x0000000115929f72 libsystem_kernel.dylib`mach_ms<wbr>g_trap + 10<br>
><br>
> libsystem_kernel.dylib`mach_ms<wbr>g_trap:<br>
><br>
> -> 0x115929f72 <+10>: retq<br>
><br>
> 0x115929f73 <+11>: nop<br>
><br>
><br>
><br>
> libsystem_kernel.dylib`mach_ms<wbr>g_overwrite_trap:<br>
><br>
> 0x115929f74 <+0>: movq %rcx, %r10<br>
><br>
> 0x115929f77 <+3>: movl $0x1000020, %eax ; imm = 0x1000020<br>
><br>
> (lldb) repl<br>
><br>
> 1> import Foundation<br>
><br>
> warning: Swift error in module <App Name>.<br>
><br>
> Debug info from this module will be unavailable in the debugger.<br>
><br>
><br>
><br>
><br>
> This part looks suspicious. I'm assuming <App Name> is really something else on your end. If you do have a space in the name, you might want to try without a space as something in the toolchain might be mishandling spaces in pathnames.<br>
><br>
><br>
> Assertion failed: (!HasFatalErrors()), function GetNumModuleSearchPaths, file /Users/Rex/Documents/projects/<wbr>swift-lldb/lldb/source/Symbol/<wbr>SwiftASTContext.cpp, line 3587.<br>
><br>
> Abort trap: 6<br>
><br>
><br>
><br>
><br>
><br>
><br>
> This bit above definitely means something is wrong. I suspect it's a cascading error for the debugger not being able to find debug info.<br>
><br>
> There are a couple members of the team that will likely have some thoughts on what to try. I'll make sure they see this tomorrow.<br>
><br>
> Thanks for passing that along,<br>
> Todd<br>
><br>
> --<br>
> Rex Fenley | IOS DEVELOPER<br>
><br>
><br>
</div></div><div><div>> Remind.com | BLOG | FOLLOW US | LIKE US<br>
><br>
> ______________________________<wbr>_________________<br>
> swift-lldb-dev mailing list<br>
> <a href="mailto:swift-lldb-dev@swift.org" target="_blank">swift-lldb-dev@swift.org</a><br>
> <a href="https://lists.swift.org/mailman/listinfo/swift-lldb-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-lldb-dev</a><br>
><br>
><br>
><br>
><br>
> --<br>
> -Todd<br>
> ______________________________<wbr>_________________<br>
> swift-lldb-dev mailing list<br>
> <a href="mailto:swift-lldb-dev@swift.org" target="_blank">swift-lldb-dev@swift.org</a><br>
> <a href="https://lists.swift.org/mailman/listinfo/swift-lldb-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-lldb-dev</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><div data-smartmail="gmail_signature"><div dir="ltr"><span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:16px;font-family:Arial;background-color:transparent;font-style:italic;vertical-align:baseline;white-space:pre-wrap">Rex Fenley</span><span style="font-size:16px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">|</span><span style="line-height:1.15;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">IOS DEVELOPER</span><br></p></span><span><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><img src="https://lh5.googleusercontent.com/xMgzw3JkFL3DLkdwyq0WxJzKs_XP57gVVCaBMvgi1FKCjSeue0xdx3JZeCWBlxN4KRHhHOfdvJbc1N-AjTwXcKIq4cjJg9H7iaFpQ8WbO4N3c9Y5dzi19cPOs_owPquuqw" width="250px;" height="53px;" style="border:none"></span></p><span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><a href="https://www.remind.com/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);font-weight:bold;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Remind.com</span></a><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">| </span><a href="http://blog.remind.com/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">BLOG</span></a><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> | </span><a href="https://twitter.com/remindhq" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">FOLLOW US</span></a><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> | </span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="https://www.facebook.com/remindhq" style="text-decoration:none" target="_blank">LIKE US</a></span></p></span></span></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:16px;font-family:Arial;background-color:transparent;font-style:italic;vertical-align:baseline;white-space:pre-wrap">Rex Fenley</span><span style="font-size:16px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">|</span><span style="line-height:1.15;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">IOS DEVELOPER</span><br></p></span><span><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><img src="https://lh5.googleusercontent.com/xMgzw3JkFL3DLkdwyq0WxJzKs_XP57gVVCaBMvgi1FKCjSeue0xdx3JZeCWBlxN4KRHhHOfdvJbc1N-AjTwXcKIq4cjJg9H7iaFpQ8WbO4N3c9Y5dzi19cPOs_owPquuqw" width="250px;" height="53px;" style="border:none"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><a href="https://www.remind.com/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);font-weight:bold;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Remind.com</span></a><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">| </span><a href="http://blog.remind.com/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">BLOG</span></a><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> | </span><a href="https://twitter.com/remindhq" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">FOLLOW US</span></a><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> | </span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="https://www.facebook.com/remindhq" style="text-decoration:none" target="_blank">LIKE US</a></span></p></span></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:16px;font-family:Arial;background-color:transparent;font-style:italic;vertical-align:baseline;white-space:pre-wrap">Rex Fenley</span><span style="font-size:16px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">|</span><span style="line-height:1.15;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">IOS DEVELOPER</span><br></p></span><span><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><img src="https://lh5.googleusercontent.com/xMgzw3JkFL3DLkdwyq0WxJzKs_XP57gVVCaBMvgi1FKCjSeue0xdx3JZeCWBlxN4KRHhHOfdvJbc1N-AjTwXcKIq4cjJg9H7iaFpQ8WbO4N3c9Y5dzi19cPOs_owPquuqw" width="250px;" height="53px;" style="border:none"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><a href="https://www.remind.com/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);font-weight:bold;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Remind.com</span></a><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">| </span><a href="http://blog.remind.com/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">BLOG</span></a><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> | </span><a href="https://twitter.com/remindhq" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">FOLLOW US</span></a><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> | </span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="https://www.facebook.com/remindhq" style="text-decoration:none" target="_blank">LIKE US</a></span></p></span></div></div>
</div>