<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div>Some information may be leading to resolve of this problem</div><div id="yui_3_16_0_ym19_1_1510066349807_3988"><br></div><div>I think "ld" tool does a lot of the trick</div><div id="yui_3_16_0_ym19_1_1510066349807_3646"><br></div><div id="yui_3_16_0_ym19_1_1510066349807_3647">Notice the difference between the results of the two compilations (Xcode and SPM):</div><div id="yui_3_16_0_ym19_1_1510066349807_4058"><br></div><div id="yui_3_16_0_ym19_1_1510066349807_4057">Kitura example via Xcode, when invoked "target modules list" on lldb</div><div id="yui_3_16_0_ym19_1_1510066349807_4059"><br></div><div id="yui_3_16_0_ym19_1_1510066349807_4060">Gets this</div><div dir="ltr" id="yui_3_16_0_ym19_1_1510066349807_4260"><a href="https://pastebin.com/vWQEF760" class="enhancr2_265b89ea-1fb5-2595-ce04-49a86b130cba" id="yui_3_16_0_ym19_1_1510066349807_4346">[  0] 788D7481-3E7E-3B4D-805E-A18937409552 0x0000000100000000 /Users/mac/Documen - Pastebin.com</a></div><div id="yui_3_16_0_ym19_1_1510066349807_4353"><br></div><div id="enhancr2_265b89ea-1fb5-2595-ce04-49a86b130cba" class="yahoo-link-enhancr-card  ymail-preserve-class ymail-preserve-style" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="https://pastebin.com/vWQEF760" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium" dir="ltr" contenteditable="false"> <a href="https://pastebin.com/vWQEF760" style="text-decoration:none !important; color: #000 !important;" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer" id="yui_3_16_0_ym19_1_1510066349807_4368"> <table class="card-wrapper yahoo-ignore-table" style="max-width:400px;" id="yui_3_16_0_ym19_1_1510066349807_4367" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4366"><tr id="yui_3_16_0_ym19_1_1510066349807_4365"> <td id="yui_3_16_0_ym19_1_1510066349807_4364" width="400"> <table class="card yahoo-ignore-table" style="max-width:400px;" id="yui_3_16_0_ym19_1_1510066349807_4363" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4362"><tr id="yui_3_16_0_ym19_1_1510066349807_4361"> <td class="card-primary-image-cell" style="background:#000 url('https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg') no-repeat center center;background-size:cover;height:200px;position:relative;" id="yui_3_16_0_ym19_1_1510066349807_4360" valign="top" bgcolor="#000000" background="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg"/></v:rect><![endif]--> <table class="yahoo-ignore-table" valign="top" style="width:100%;" id="yui_3_16_0_ym19_1_1510066349807_4359" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4358"><tr id="yui_3_16_0_ym19_1_1510066349807_4357"> <td style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;height:200px;" id="yui_3_16_0_ym19_1_1510066349807_4356" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"/><v:textbox inset="0,0,20px,0"><![endif]--> <table class="yahoo-ignore-table" style="width:100%;height:185px;min-height:185px;" id="yui_3_16_0_ym19_1_1510066349807_4355" height="185"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4395"><tr id="yui_3_16_0_ym19_1_1510066349807_4394"> <td class="card-richInfo2" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;" id="yui_3_16_0_ym19_1_1510066349807_4393">  </td> <td class="card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;"> <div class="card-share-container"></div> </td> </tr> </tbody></table> <!--[if gte mso 9]></v:textbox></v:rect><![endif]--> </td> </tr> </tbody></table> </td> </tr> <tr id="yui_3_16_0_ym19_1_1510066349807_4410"> <td id="yui_3_16_0_ym19_1_1510066349807_4409"> <table class="card-info yahoo-ignore-table" style="background:#fff;position:relative;z-index:2;width:95%;max-width:380px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;margin-top:-40px;margin-left:auto;margin-right:auto;" id="yui_3_16_0_ym19_1_1510066349807_4408" cellspacing="0" cellpadding="0" border="0" align="center"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4407"><tr id="yui_3_16_0_ym19_1_1510066349807_4406"> <td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;">  </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;" id="yui_3_16_0_ym19_1_1510066349807_4405"> <h2 class="card-title" style="font-size: 16px; line-height:19px; margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;" id="yui_3_16_0_ym19_1_1510066349807_4418">[  0] 788D7481-3E7E-3B4D-805E-A18937409552 0x0000000100000000 /Users/mac/Do...</h2>  <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;"></div> </td> <td style="text-align:right;padding:16px 12px 16px 0;">  </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1510066349807_4417"><br></div><div id="yui_3_16_0_ym19_1_1510066349807_4479">&nbsp;When invoked on the compiled via SPM it results in :</div><div id="yui_3_16_0_ym19_1_1510066349807_4481" dir="ltr"><a href="https://pastebin.com/6LERECUk" class="enhancr2_3a77128d-deba-768d-d057-dbed601e9c7e" id="yui_3_16_0_ym19_1_1510066349807_4566">[  0] ED5DAA33-8E50-3EE9-8487-1C5931520130 0x0000000100000000 /Users/mac/Documen - Pastebin.com</a></div><div><br></div><div id="enhancr2_3a77128d-deba-768d-d057-dbed601e9c7e" class="yahoo-link-enhancr-card  ymail-preserve-class ymail-preserve-style" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="https://pastebin.com/6LERECUk" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium" dir="ltr" contenteditable="false"> <a href="https://pastebin.com/6LERECUk" style="text-decoration:none !important; color: #000 !important;" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer" id="yui_3_16_0_ym19_1_1510066349807_4589"> <table class="card-wrapper yahoo-ignore-table" style="max-width:400px;" id="yui_3_16_0_ym19_1_1510066349807_4588" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4587"><tr id="yui_3_16_0_ym19_1_1510066349807_4586"> <td id="yui_3_16_0_ym19_1_1510066349807_4585" width="400"> <table class="card yahoo-ignore-table" style="max-width:400px;" id="yui_3_16_0_ym19_1_1510066349807_4584" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4583"><tr id="yui_3_16_0_ym19_1_1510066349807_4582"> <td class="card-primary-image-cell" style="background:#000 url('https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg') no-repeat center center;background-size:cover;height:200px;position:relative;" id="yui_3_16_0_ym19_1_1510066349807_4581" valign="top" bgcolor="#000000" background="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg"/></v:rect><![endif]--> <table class="yahoo-ignore-table" valign="top" style="width:100%;" id="yui_3_16_0_ym19_1_1510066349807_4580" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4579"><tr id="yui_3_16_0_ym19_1_1510066349807_4578"> <td style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;height:200px;" id="yui_3_16_0_ym19_1_1510066349807_4577" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"/><v:textbox inset="0,0,20px,0"><![endif]--> <table class="yahoo-ignore-table" style="width:100%;height:185px;min-height:185px;" id="yui_3_16_0_ym19_1_1510066349807_4576" height="185"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4575"><tr id="yui_3_16_0_ym19_1_1510066349807_4574"> <td class="card-richInfo2" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;">  </td> <td class="card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;" id="yui_3_16_0_ym19_1_1510066349807_4573"> <div class="card-share-container"></div> </td> </tr> </tbody></table> <!--[if gte mso 9]></v:textbox></v:rect><![endif]--> </td> </tr> </tbody></table> </td> </tr> <tr> <td> <table class="card-info yahoo-ignore-table" style="background:#fff;position:relative;z-index:2;width:95%;max-width:380px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;margin-top:-40px;margin-left:auto;margin-right:auto;" cellspacing="0" cellpadding="0" border="0" align="center"> <tbody><tr> <td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;">  </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="card-title" style="font-size: 16px; line-height:19px; margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;">[  0] ED5DAA33-8E50-3EE9-8487-1C5931520130 0x0000000100000000 /Users/mac/Do...</h2>  <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;"></div> </td> <td style="text-align:right;padding:16px 12px 16px 0;">  </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1510066349807_4609"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1510066349807_4610"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1510066349807_4612"><br></div><div id="yui_3_16_0_ym19_1_1510066349807_4478">It seems the modules are compiled and linked SEPARATELY in Xcode, and this succeed in debugging</div><div id="yui_3_16_0_ym19_1_1510066349807_4735">But in SPM, all are compiled as one module (it may have submodules)</div><div id="yui_3_16_0_ym19_1_1510066349807_4976"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1510066349807_4977">I think if you provide something compiles to dynamic link libraries on Linux (and SPM in general) like frameworks on macOS, it will solve the problem<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1510066349807_4343"><br></div><div id="yui_3_16_0_ym19_1_1510066349807_4259"><br></div><div id="enhancr2_1f7cffff-46a6-5656-e067-c5125da69680" class="yahoo-link-enhancr-card  ymail-preserve-class ymail-preserve-style" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="https://pastebin.com/" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium" dir="ltr" contenteditable="false"> <a href="https://pastebin.com/" style="text-decoration:none !important; color: #000 !important;" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer" id="yui_3_16_0_ym19_1_1510066349807_4017"> <table class="card-wrapper yahoo-ignore-table" style="max-width:400px;" id="yui_3_16_0_ym19_1_1510066349807_4016" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4015"><tr id="yui_3_16_0_ym19_1_1510066349807_4014"> <td id="yui_3_16_0_ym19_1_1510066349807_4013" width="400"> <table class="card yahoo-ignore-table" style="max-width:400px;" id="yui_3_16_0_ym19_1_1510066349807_4012" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4011"><tr id="yui_3_16_0_ym19_1_1510066349807_4010"> <td class="card-primary-image-cell" style="background:#000 url('https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg') no-repeat center center;background-size:cover;height:200px;position:relative;" id="yui_3_16_0_ym19_1_1510066349807_4009" valign="top" bgcolor="#000000" background="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg"/></v:rect><![endif]--> <table class="yahoo-ignore-table" valign="top" style="width:100%;" id="yui_3_16_0_ym19_1_1510066349807_4008" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4007"><tr id="yui_3_16_0_ym19_1_1510066349807_4006"> <td style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;height:200px;" id="yui_3_16_0_ym19_1_1510066349807_4005" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"/><v:textbox inset="0,0,20px,0"><![endif]--> <table class="yahoo-ignore-table" style="width:100%;height:185px;min-height:185px;" id="yui_3_16_0_ym19_1_1510066349807_4004" height="185"> <tbody id="yui_3_16_0_ym19_1_1510066349807_4003"><tr id="yui_3_16_0_ym19_1_1510066349807_4002"> <td class="card-richInfo2" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;" id="yui_3_16_0_ym19_1_1510066349807_4001">  </td> <td class="card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;" id="yui_3_16_0_ym19_1_1510066349807_4255"> <div class="card-share-container"></div> </td> </tr> </tbody></table> <!--[if gte mso 9]></v:textbox></v:rect><![endif]--> </td> </tr> </tbody></table> </td> </tr> <tr id="yui_3_16_0_ym19_1_1510066349807_4048"> <td id="yui_3_16_0_ym19_1_1510066349807_4047"> <table class="card-info yahoo-ignore-table" style="background:#fff;position:relative;z-index:2;width:95%;max-width:380px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;margin-top:-40px;margin-left:auto;margin-right:auto;" id="yui_3_16_0_ym19_1_1510066349807_4046" cellspacing="0" cellpadding="0" border="0" align="center"> <tbody><tr> <td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;">  </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="card-title" style="font-size: 16px; line-height:19px; margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;">Pastebin.com - #1 paste tool since 2002!</h2>  <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;">Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for ...</div> </td> <td style="text-align:right;padding:16px 12px 16px 0;">  </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1510066349807_4052"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1510066349807_4051"><br></div><div id="yui_3_16_0_ym19_1_1510066349807_3561"><span></span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1510066349807_3562"><br><br></div><div class="yahoo_quoted" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="rtl"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">من:</span></b> Jim Ingham &lt;jingham@apple.com&gt;<br> <b><span style="font-weight: bold;">إلى:</span></b> ‫Fadi Botros‬ ‫ &lt;botros_fadi@yahoo.com&gt; <br><b><span style="font-weight: bold;">نسخة كربونية:</span></b> Michael Gottesman &lt;mgottesman@apple.com&gt;; "swift-users@swift.org" &lt;swift-users@swift.org&gt;<br> <b><span style="font-weight: bold;">تاريخ الإرسال:</span></b> الثلاثاء 7 نوفمبر، 2017‏ 2:29 ص<br> <b><span style="font-weight: bold;">الموضوع:</span></b> Re: [swift-users] About Swift Package Manager and LLDB<br> </font> </div> <div class="y_msg_container"><br><div id="yiv8800244917"><div>It does look like this is a known bug (not yet fixed) in SPM:<div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917"><a rel="nofollow" shape="rect" class="yiv8800244917" target="_blank" href="https://bugs.swift.org/browse/SR-3280">https://bugs.swift.org/browse/SR-3280</a></div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">The bug isn’t fixed yet (apparently it’s blocked on a swift compiler issue.) &nbsp;There’s a workaround in that report, though I don’t know how viable it is. &nbsp;Anyway, you can track that bug to see when this gets fixed.</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">Jim</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917yqt6694286270" id="yiv8800244917yqt91919"><div class="yiv8800244917"><div><blockquote class="yiv8800244917" type="cite"><div class="yiv8800244917">On Nov 6, 2017, at 3:45 PM, ⁨‫Fadi Botros‬ ‫⁩ &lt;⁨<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>⁩&gt; wrote:</div><br class="yiv8800244917Apple-interchange-newline" clear="none"><div class="yiv8800244917"><div class="yiv8800244917"><div class="yiv8800244917" style="background-color:rgb(255, 255, 255);"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3115"><span class="yiv8800244917"></span></div><div class="yiv8800244917qtdSeparateBR" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3089"><br class="yiv8800244917" clear="none"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3518">I don't think Perfect has problems because it debugs perfectly on Xcode</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3519">Kitura may have some flaws because on Xcode also causes some issues BUT YOU STILL CAN GET FRAME, ETC.. WHILE NOT HAVING THOSE IN SPM</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3520"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3570">The problem is in SPM</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3693">Just make the SPM build Swift Packages like Xcode (or equivalent)</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3694"><br class="yiv8800244917" clear="none"></div></div><div class="yiv8800244917yahoo_quoted" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3111" style="display:block;">  <div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3110" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3109" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv8800244917" dir="rtl" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3114"> <font class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3113" size="2" face="Arial"> </font><hr class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3189" size="1"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">من:</span></b> Jim Ingham &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:jingham@apple.com" target="_blank" href="mailto:jingham@apple.com">jingham@apple.com</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">إلى:</span></b> ‫Fadi Botros‬ ‫ &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>&gt; <br class="yiv8800244917" clear="none"><b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">نسخة كربونية:</span></b> Michael Gottesman &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:mgottesman@apple.com" target="_blank" href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt;; "<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>" &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">تاريخ الإرسال:</span></b> الثلاثاء 7 نوفمبر، 2017‏ 1:39 ص<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">الموضوع:</span></b> Re: بخصوص: بخصوص: [swift-users] About Swift Package Manager and LLDB<br class="yiv8800244917" clear="none">  </div> <div class="yiv8800244917y_msg_container" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3108"><br class="yiv8800244917" clear="none"><div class="yiv8800244917" id="yiv8800244917"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3107">It isn’t quite as mysterious as that. &nbsp;lldb emulates the context of the frame you are stopped in when you run “frame variable” or “expression”. &nbsp;It looks like PerfectTemplate doesn’t have a problem, and doesn’t rely on modules that we can’t reconstruct. &nbsp;But some of the other modules do have problems. &nbsp;For instance, if I let the program come up, interrupt it and switch to a frame in the PerfectHTTPServer, then I see:<div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3112"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3627"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3626" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">(lldb) expr let $mystr = "Some string"</span></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3628" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">error: in auto-import:</span></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3643" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">failed to get module 'PerfectHTTPServer' from AST context:</span></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3642" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">error: missing required modules: 'PerfectCHTTPParser', 'PerfectCZlib'</span></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3641"><span class="yiv8800244917" style=""><br class="yiv8800244917" clear="none"></span></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3640"><span class="yiv8800244917" style=""><br class="yiv8800244917" clear="none"></span></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3637">But that’s not the only one with problems, and I’m still not getting any useful error messages back from swift. &nbsp;I’ll have to dig into this more.</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3638"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510011616929_3639">Jim</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917yqt1980023090" id="yiv8800244917yqt90159"><div class="yiv8800244917"><br class="yiv8800244917" clear="none"><div class="yiv8800244917"><br class="yiv8800244917" clear="none"><blockquote class="yiv8800244917" type="cite"><div class="yiv8800244917">On Nov 6, 2017, at 2:38 PM, ⁨‫Fadi Botros‬ ‫⁩ &lt;⁨<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>⁩&gt; wrote:</div><br class="yiv8800244917Apple-interchange-newline" clear="none"><div class="yiv8800244917"><div class="yiv8800244917"><div class="yiv8800244917" style="background-color:rgb(255, 255, 255);"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26648">WEIRD WEIRD WEIRD</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26649">It seems it is threading issue</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26650">Because when I tried to breakpoint on line 71 file main.swift (like you did)</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26651">It worked perfectly</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26652">I even could "frame variable" fully</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26653"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" dir="ltr">It seems that perfect framework when handle an HTTP request, it makes something in threads, I don't know how to debug it</div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26654"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26655">Try to debug on line 31 then invoke an HTTP request on localhost:8181, you will reproduce the error<br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26694"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" dir="ltr">But it works when I use xcode (Again this is irreleveant, this is not the solution)<br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26695"><span class="yiv8800244917"></span></div><div class="yiv8800244917qtdSeparateBR" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26702"><br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917yahoo_quoted" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26706" style="display:block;">  <div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26705" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26704" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv8800244917" dir="rtl" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26703"> <font class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26707" size="2" face="Arial"> </font><hr class="yiv8800244917" size="1"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">من:</span></b> Jim Ingham &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:jingham@apple.com" target="_blank" href="mailto:jingham@apple.com">jingham@apple.com</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">إلى:</span></b> ‫Fadi Botros‬ ‫ &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>&gt; <br class="yiv8800244917" clear="none"><b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">نسخة كربونية:</span></b> Michael Gottesman &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:mgottesman@apple.com" target="_blank" href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt;; "<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>" &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">تاريخ الإرسال:</span></b> الثلاثاء 7 نوفمبر، 2017‏ 12:21 ص<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">الموضوع:</span></b> Re: بخصوص: [swift-users] About Swift Package Manager and LLDB<br class="yiv8800244917" clear="none">  </div> <div class="yiv8800244917y_msg_container" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26708"><br class="yiv8800244917" clear="none"><div class="yiv8800244917" id="yiv8800244917"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_26709">This works for me (with Xcode 9.0):<div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&gt; git clone <a rel="nofollow" shape="rect" class="yiv8800244917" target="_blank" href="https://github.com/PerfectlySoft/PerfectTemplate.git">https://github.com/PerfectlySoft/PerfectTemplate.git</a> PT</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">Cloning into 'PT'...</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">remote: Counting objects: 214, done.</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">remote: Total 214 (delta 0), reused 0 (delta 0), pack-reused 214</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">Receiving objects: 100% (214/214), 48.65 KiB | 0 bytes/s, done.</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">Resolving deltas: 100% (110/110), done.</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&gt; cd PT</span></div><div class="yiv8800244917"><span class="yiv8800244917" style="font-family:Menlo;font-size:11px;background-color:rgb(255, 255, 255);">&nbsp;&gt; swift build</span></div><div class="yiv8800244917"><span class="yiv8800244917" style="font-family:Menlo;font-size:11px;background-color:rgb(255, 255, 255);">&lt;lots of output&gt;</span></div><div class="yiv8800244917"><div class="yiv8800244917"><span class="yiv8800244917" style=""></span><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&gt; cd .build/debug</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&gt; lldb PerfectTemplate</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">(lldb) target create "PerfectTemplate"</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">Current executable set to 'PerfectTemplate' (x86_64).</span></div><div class="yiv8800244917"><span class="yiv8800244917" style=""></span><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">(lldb) b s -l 71</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">Breakpoint 1: where = PerfectTemplate`main + 2627 at main.swift:71, address = 0x0000000100436c33</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">(lldb) run</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">Process 26948 launched: '/private/tmp/PT/.build/x86_64-apple-macosx10.10/debug/PerfectTemplate' (x86_64)</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">Process 26948 stopped</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp; &nbsp; frame #0: 0x0000000100436c33 PerfectTemplate`main at main.swift:71</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&nbsp; 68 &nbsp;<span class="yiv8800244917Apple-tab-span" style="white-space:pre;">        </span></span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&nbsp; 69&nbsp; <span class="yiv8800244917Apple-tab-span" style="white-space:pre;">        </span>do {</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&nbsp; 70&nbsp; <span class="yiv8800244917Apple-tab-span" style="white-space:pre;">                </span>// Launch the servers based on the configuration data.</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">-&gt; 71&nbsp; <span class="yiv8800244917Apple-tab-span" style="white-space:pre;">                </span>try HTTPServer.launch(configurationData: confData)</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp; &nbsp; <span class="yiv8800244917Apple-tab-span" style="white-space:pre;">                </span>&nbsp; &nbsp; ^</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&nbsp; 72&nbsp; <span class="yiv8800244917Apple-tab-span" style="white-space:pre;">        </span>} catch {</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&nbsp; 73&nbsp; <span class="yiv8800244917Apple-tab-span" style="white-space:pre;">                </span>fatalError("\(error)") // fatal error launching one of the servers</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">&nbsp;&nbsp; 74&nbsp; <span class="yiv8800244917Apple-tab-span" style="white-space:pre;">        </span>}</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">Target 0: (PerfectTemplate) stopped.</span></div><div class="yiv8800244917"><span class="yiv8800244917" style=""></span><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">(lldb) expr confData.count</span></div><div class="yiv8800244917" style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="yiv8800244917" style="">(Int) $R1 = 1</span></div><div class="yiv8800244917"><span class="yiv8800244917" style=""><br class="yiv8800244917" clear="none"></span></div></div></div></div><div class="yiv8800244917">Do the same steps not work for you? &nbsp;If you were doing something different can you describe the steps you took?</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">Jim</div><div class="yiv8800244917yqt4302615911" id="yiv8800244917yqt87802"><div class="yiv8800244917"><br class="yiv8800244917" clear="none"><blockquote class="yiv8800244917" type="cite"><div class="yiv8800244917">On Nov 6, 2017, at 2:10 PM, ⁨‫Fadi Botros‬ ‫⁩ &lt;⁨<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>⁩&gt; wrote:</div><br class="yiv8800244917Apple-interchange-newline" clear="none"><div class="yiv8800244917"><div class="yiv8800244917"><div class="yiv8800244917" style="background-color:rgb(255, 255, 255);"><div class="yiv8800244917">Also please noted</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_20415">I think it is a SPM issue not an LLDB one</div><div class="yiv8800244917">Because when compiled on the same mac with Xcode (Swift package manager generate Xcode project), then use xcode-build</div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_20416">LLDB works perfectly in this circumstances</div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1510003542258_20417"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" dir="ltr">I think you should refine the compilation script generated by SPM to generate something like Xcode results (I think Xcode itself uses normal Swift toolchain, I think it does nothing here more than generating a better compilation/linking script)<br class="yiv8800244917" clear="none"></div><div class="yiv8800244917"><span class="yiv8800244917"></span></div><div class="yiv8800244917qtdSeparateBR"><br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917yahoo_quoted" style="display:block;">  <div class="yiv8800244917" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div class="yiv8800244917" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv8800244917" dir="rtl"> <font class="yiv8800244917" size="2" face="Arial"> </font><hr class="yiv8800244917" size="1"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">من:</span></b> Jim Ingham &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:jingham@apple.com" target="_blank" href="mailto:jingham@apple.com">jingham@apple.com</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">إلى:</span></b> ‫Fadi Botros‬ ‫ &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>&gt; <br class="yiv8800244917" clear="none"><b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">نسخة كربونية:</span></b> Michael Gottesman &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:mgottesman@apple.com" target="_blank" href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt;; "<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>" &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">تاريخ الإرسال:</span></b> الإثنين 6 نوفمبر، 2017‏ 11:45 م<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">الموضوع:</span></b> Re: [swift-users] About Swift Package Manager and LLDB<br class="yiv8800244917" clear="none">  </div> <div class="yiv8800244917y_msg_container"><br class="yiv8800244917" clear="none"><div class="yiv8800244917" id="yiv8800244917"><div class="yiv8800244917">Swift doesn’t seem to be reporting whatever the error is, I just see:<div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">((SwiftASTContext*)0x7f8c555c84a0)-&gt;GetModule('PerfectTemplate') -- failed with no error<br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none">That’s not very helpful. &nbsp;Again, I’ll probably need to make this happen locally to see what went wrong. &nbsp;If you have a project that shows the issue which you can make available, please file a bug with a description of how you build and debug this app, I’ll take a look.</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">Jim</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"><div class="yiv8800244917"><br class="yiv8800244917" clear="none"><blockquote class="yiv8800244917" type="cite"><div class="yiv8800244917yqt0332320699" id="yiv8800244917yqt33284"><div class="yiv8800244917">On Nov 6, 2017, at 12:56 PM, ⁨‫Fadi Botros‬ ‫⁩ &lt;⁨<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>⁩&gt; wrote:</div><br class="yiv8800244917Apple-interchange-newline" clear="none"><div class="yiv8800244917"><div class="yiv8800244917"><div class="yiv8800244917" style="background-color:rgb(255, 255, 255);"><div class="yiv8800244917" id="yiv8800244917"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35243"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35242" style="background-color:rgb(255, 255, 255);"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35241"><span class="yiv8800244917">OK</span></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35245"><span class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35244">Here is when captured "print self" log from the beginning</span></div><div class="yiv8800244917"><span class="yiv8800244917"></span></div><div class="yiv8800244917qtdSeparateBR" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27411"><br class="yiv8800244917" clear="none"><div class="yiv8800244917">Attached here is the full log file</div><div class="yiv8800244917">See the attachments<br class="yiv8800244917" clear="none"></div></div><div class="yiv8800244917yqt8566474903" id="yiv8800244917yqt49030"></div></div></div></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35249">  <div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27448" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27447" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv8800244917" dir="rtl" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27446"> <font class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27445" size="2" face="Arial"> </font><hr class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36130" size="1"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">من:</span></b> Jim Ingham &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:jingham@apple.com" target="_blank" href="mailto:jingham@apple.com">jingham@apple.com</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">إلى:</span></b> ‫Fadi Botros‬ ‫ &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>&gt; <br class="yiv8800244917" clear="none"><b class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35251"><span class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35250" style="font-weight:bold;">نسخة كربونية:</span></b> Michael Gottesman &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:mgottesman@apple.com" target="_blank" href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt;; "<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>" &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">تاريخ الإرسال:</span></b> الإثنين 6 نوفمبر، 2017‏ 10:15 م<br class="yiv8800244917" clear="none"> <b class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35253"><span class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35252" style="font-weight:bold;">الموضوع:</span></b> Re: [swift-users] About Swift Package Manager and LLDB<br class="yiv8800244917" clear="none">  </div> <div class="yiv8800244917y_msg_container" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27451"><br class="yiv8800244917" clear="none"><div class="yiv8800244917" id="yiv8800244917"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27450">The log for “print self” was unfortunately captured too late. &nbsp;Reading in the PerfectTemplate module had already failed, and so any subsequent attempt will just report it as failed. &nbsp;To get the complete error log for this, you need to put:<div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36131"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27452">log enable -f /tmp/lldb-type-log.txt lldb types</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27453"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_27454">in your ~/.lldbinit file and then start a fresh debugging session and capture the whole session.</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36124"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">The failure from the REPL &nbsp;is because you have to tell the REPL where to look for other frameworks from which it might load modules. &nbsp;You can pass appropriate -I, -L and -F flags to the “swift” invocation too tell the compiler lldb’s using to implement the REPL where to look for this module.</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36119"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">The example you gave seems to be a MacOS X example. &nbsp;The binary type was MachO etc. &nbsp;If this is just a small example that you are using to demonstrate the problem, can you file a PR with the swift bug reporter with this example and how you built/ran it and we can take a look here. &nbsp;That’s probably easier than trying to pass logs back and forth.</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">Jim</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35375"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35374"><blockquote class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35373" type="cite"><div class="yiv8800244917yqt0651211359" id="yiv8800244917yqt63798"><div class="yiv8800244917">On Nov 6, 2017, at 11:27 AM, ⁨‫Fadi Botros‬ ‫ via swift-users⁩ &lt;⁨<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>⁩&gt; wrote:</div><br class="yiv8800244917Apple-interchange-newline" clear="none"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_35372"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36080"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36079" style="background-color:rgb(255, 255, 255);"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_25578"><span class="yiv8800244917">This happens when try to print(self)</span></div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29711"><span class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29709"><a rel="nofollow" shape="rect" class="yiv8800244917enhancr2_bfda01b2-be54-224f-47c2-1510788078bd" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29708" target="_blank" href="https://pastebin.com/15b52C1x">Processing command: po print(self)  HandleCommand, cmd_obj : 'expression'  Handl - Pastebin.com</a><br class="yiv8800244917" clear="none"></span></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29717"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917ymail-preserve-style yiv8800244917yahoo-link-enhancr-card yiv8800244917ymail-preserve-class" dir="ltr" id="yiv8800244917enhancr2_bfda01b2-be54-224f-47c2-1510788078bd" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="https://pastebin.com/15b52C1x" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium"> <a rel="nofollow" shape="rect" class="yiv8800244917yahoo-enhancr-cardlink" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29732" target="_blank" href="https://pastebin.com/15b52C1x" style="text-decoration:none;"> <table class="yiv8800244917card-wrapper yiv8800244917yahoo-ignore-table" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29731" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29730"><tr class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29729"><td colspan="1" rowspan="1" class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29728" width="400"> <table class="yiv8800244917yahoo-ignore-table yiv8800244917card" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29727" style="max-width:400px;" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29726"><tr class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29725"><td colspan="1" rowspan="1" class="yiv8800244917card-primary-image-cell" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29724" style="background:#000 url('https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg') no-repeat center center;background-size:cover;min-height:200px;position:relative;" valign="top" bgcolor="#000000" background="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg">  <table class="yiv8800244917yahoo-ignore-table" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29723" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29722"><tr class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29721"><td colspan="1" rowspan="1" class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29720" style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;min-height:200px;" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png">  <table class="yiv8800244917yahoo-ignore-table" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29719" style="width:100%;min-height:185px;min-height:185px;" height="185"><tbody class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29795"><tr class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29794"><td colspan="1" rowspan="1" class="yiv8800244917card-richInfo2" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29793" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;">  </td><td colspan="1" rowspan="1" class="yiv8800244917card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;"> <div class="yiv8800244917card-share-container"></div> </td></tr></tbody></table>  </td></tr></tbody></table> </td></tr><tr class="yiv8800244917"><td colspan="1" rowspan="1" class="yiv8800244917"> <table class="yiv8800244917card-info yiv8800244917yahoo-ignore-table" style="background:#fff;position:relative;z-index:2;width:95%;max-width:380px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;margin-top:-40px;margin-left:auto;margin-right:auto;" cellspacing="0" cellpadding="0" border="0" align="center"><tbody class="yiv8800244917"><tr class="yiv8800244917"><td colspan="1" rowspan="1" class="yiv8800244917" style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;">  </td><td colspan="1" rowspan="1" class="yiv8800244917" style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="yiv8800244917card-title" style="font-size:16px;line-height:19px;margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">Processing command: po print(self)  HandleCommand, cmd_obj : 'expressio...</h2>  <div class="yiv8800244917card-description" style="font-size:11px;line-height:15px;color:#999;"></div> </td><td colspan="1" rowspan="1" class="yiv8800244917" style="text-align:right;padding:16px 12px 16px 0;">  </td></tr></tbody></table> </td></tr></tbody></table> </td></tr></tbody></table> </a></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29748"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917qtdSeparateBR" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_25571"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29750"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" dir="ltr">This happens when REPL then try to "import PerfectTemplate"</div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29808"><a rel="nofollow" shape="rect" class="yiv8800244917enhancr2_b110cf3c-1608-9960-a248-c80d8560abc2" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29807" target="_blank" href="https://pastebin.com/FsGgXa54">== [UserExpression::Evaluate] Parsing expression import PerfectTemplate ==  Swif - Pastebin.com</a><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917ymail-preserve-style yiv8800244917yahoo-link-enhancr-card yiv8800244917ymail-preserve-class" dir="ltr" id="yiv8800244917enhancr2_b110cf3c-1608-9960-a248-c80d8560abc2" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="https://pastebin.com/FsGgXa54" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium"> <a rel="nofollow" shape="rect" class="yiv8800244917yahoo-enhancr-cardlink" target="_blank" href="https://pastebin.com/FsGgXa54" style="text-decoration:none;"> <table class="yiv8800244917card-wrapper yiv8800244917yahoo-ignore-table" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv8800244917"><tr class="yiv8800244917"><td colspan="1" rowspan="1" class="yiv8800244917" width="400"> <table class="yiv8800244917yahoo-ignore-table yiv8800244917card" style="max-width:400px;" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv8800244917"><tr class="yiv8800244917"><td colspan="1" rowspan="1" class="yiv8800244917card-primary-image-cell" style="background:#000 url('https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg') no-repeat center center;background-size:cover;min-height:200px;position:relative;" valign="top" bgcolor="#000000" background="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg">  <table class="yiv8800244917yahoo-ignore-table" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv8800244917"><tr class="yiv8800244917"><td colspan="1" rowspan="1" class="yiv8800244917" style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;min-height:200px;" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png">  <table class="yiv8800244917yahoo-ignore-table" style="width:100%;min-height:185px;min-height:185px;" height="185"><tbody class="yiv8800244917"><tr class="yiv8800244917"><td colspan="1" rowspan="1" class="yiv8800244917card-richInfo2" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;">  </td><td colspan="1" rowspan="1" class="yiv8800244917card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;"> <div class="yiv8800244917card-share-container"></div> </td></tr></tbody></table>  </td></tr></tbody></table> </td></tr><tr class="yiv8800244917"><td colspan="1" rowspan="1" class="yiv8800244917"> <table class="yiv8800244917card-info yiv8800244917yahoo-ignore-table" style="background:#fff;position:relative;z-index:2;width:95%;max-width:380px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;margin-top:-40px;margin-left:auto;margin-right:auto;" cellspacing="0" cellpadding="0" border="0" align="center"><tbody class="yiv8800244917"><tr class="yiv8800244917"><td colspan="1" rowspan="1" class="yiv8800244917" style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;">  </td><td colspan="1" rowspan="1" class="yiv8800244917" style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="yiv8800244917card-title" style="font-size:16px;line-height:19px;margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">== [UserExpression::Evaluate] Parsing expression import PerfectTemplate == ...</h2>  <div class="yiv8800244917card-description" style="font-size:11px;line-height:15px;color:#999;"></div> </td><td colspan="1" rowspan="1" class="yiv8800244917" style="text-align:right;padding:16px 12px 16px 0;">  </td></tr></tbody></table> </td></tr></tbody></table> </td></tr></tbody></table> </a></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29833"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29842"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29863">Also the same problem happens in Kitura (even if only use packages that depend on Swift 4)<br class="yiv8800244917" clear="none"></div><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917yahoo_quoted" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_25575" style="display:block;">  <div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_25574" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_25573" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv8800244917" dir="rtl" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_25572"> <font class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_25576" size="2" face="Arial"> </font><hr class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_25577" size="1"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">من:</span></b> Michael Gottesman &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:mgottesman@apple.com" target="_blank" href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">إلى:</span></b> Michael Gottesman &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:mgottesman@apple.com" target="_blank" href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt; <br class="yiv8800244917" clear="none"><b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">نسخة كربونية:</span></b> "<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>" &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt;; ‫Fadi Botros‬ ‫ &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>&gt;<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">تاريخ الإرسال:</span></b> الإثنين 6 نوفمبر، 2017‏ 7:01 م<br class="yiv8800244917" clear="none"> <b class="yiv8800244917"><span class="yiv8800244917" style="font-weight:bold;">الموضوع:</span></b> Re: [swift-users] About Swift Package Manager and LLDB<br class="yiv8800244917" clear="none">  </div> <div class="yiv8800244917y_msg_container" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29864"><br class="yiv8800244917" clear="none"><div class="yiv8800244917" id="yiv8800244917"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509995628173_29865">Or actually:<div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917"><a rel="nofollow" shape="rect" class="yiv8800244917" target="_blank" href="https://github.com/apple/swift/blob/master/docs/DebuggingTheCompiler.rst#debugging-failures-in-lldb">https://github.com/apple/swift/blob/master/docs/DebuggingTheCompiler.rst#debugging-failures-in-lldb</a></div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">I would just enable all of the logging and post it here or if the log is very big put the log into a pastebin.</div><div class="yiv8800244917yqt1391654850" id="yiv8800244917yqt14330"><div class="yiv8800244917"><br class="yiv8800244917" clear="none"><div class="yiv8800244917"><blockquote class="yiv8800244917" type="cite"><div class="yiv8800244917">On Nov 6, 2017, at 8:59 AM, Michael Gottesman via swift-users &lt;<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt; wrote:</div><br class="yiv8800244917Apple-interchange-newline" clear="none"><div class="yiv8800244917"></div></blockquote></div></div></div></div><div class="yiv8800244917yqt1391654850" id="yiv8800244917yqt59169"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36100"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36099" style="word-wrap:break-word;">I am not going to answer this fully (I forwarded it to the appropriate people though). But to help them out, can you go to ./docs/DebuggingTheCompiler and enable lldb logging and post the output here?<div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917">Michael</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36098"><br class="yiv8800244917" clear="none"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36097"><blockquote class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36096" type="cite"><div class="yiv8800244917">On Nov 6, 2017, at 8:43 AM, ⁨‫Fadi Botros‬ ‫ via swift-users⁩ &lt;⁨<a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>⁩&gt; wrote:</div><br class="yiv8800244917Apple-interchange-newline" clear="none"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36095"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36094"><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509998552026_36093" style="background-color:rgb(255, 255, 255);font-family:'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:13px;"><div class="yiv8800244917">I'm interested in doing Web Application using Swift and promoting this to be a trend someday.</div><div class="yiv8800244917">But I couldn't find a way to debug web apps without using Xcode</div><div class="yiv8800244917">This is irrelevant because web applications are mainly on Linux, so what if we want to do remote debugging ?</div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2586"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2587">I tried using the SPM, and when I try to compile a Kitura or Perfect app then try to debug it, it gives me this</div><div class="yiv8800244917" dir="ltr"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2649">(lldb) po print(self)<br class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2644" clear="none">warning: Swift error in module &lt;moduleName&gt;.<br class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2645" clear="none">Debug info from this module will be unavailable in the debugger.<br class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2646" clear="none"><br class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2647" clear="none">error: in auto-import:<br class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2648" clear="none">failed to get module '&lt;SomeModuleName&gt;' from AST context</div><div class="yiv8800244917" dir="ltr" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2655"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2578">I'm using macOS Sierra (sorry didn't have time to upgrade), with Swift 4 that comes with Xcode 9</div><div class="yiv8800244917">Also tried the same experiment on Xubuntu using Swift 4 debian package provided on <a rel="nofollow" shape="rect" class="yiv8800244917" target="_blank" href="http://swift.org/">swift.org</a> itself</div><div class="yiv8800244917"><br class="yiv8800244917" clear="none"></div><div class="yiv8800244917" id="yiv8800244917yui_3_16_0_ym19_1_1509899666408_2691">The only succeeded way is to generate an xcodeproj and compile it, this is irrelevant because it is only macOS, while servers are Linux.<br class="yiv8800244917" clear="none"></div></div></div>_______________________________________________<br class="yiv8800244917" clear="none">swift-users mailing list<br class="yiv8800244917" clear="none"><a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br class="yiv8800244917" clear="none"><a rel="nofollow" shape="rect" class="yiv8800244917" target="_blank" href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="yiv8800244917" clear="none"></div></blockquote></div><br class="yiv8800244917" clear="none"></div></div>_______________________________________________<br class="yiv8800244917" clear="none">swift-users mailing list<br class="yiv8800244917" clear="none"><a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br class="yiv8800244917" clear="none"><a rel="nofollow" shape="rect" class="yiv8800244917" target="_blank" href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none"></div></div></div><br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none"></div> </div> </div>  </div></div></div>_______________________________________________<br class="yiv8800244917" clear="none">swift-users mailing list<br class="yiv8800244917" clear="none"><a rel="nofollow" shape="rect" class="yiv8800244917" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br class="yiv8800244917" clear="none"><a rel="nofollow" shape="rect" class="yiv8800244917" target="_blank" href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="yiv8800244917" clear="none"></div></div></blockquote></div><br class="yiv8800244917" clear="none"></div></div></div><br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none"></div> </div> </div>  </div></div></div><span class="yiv8800244917">&lt;lldb-type-log.txt&gt;</span></div></div></blockquote></div><br class="yiv8800244917" clear="none"></div></div></div><br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none"></div> </div> </div>  </div></div></div></div></blockquote></div></div><br class="yiv8800244917" clear="none"></div></div></div><br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none"></div> </div> </div>  </div></div></div></div></blockquote></div><br class="yiv8800244917" clear="none"></div></div></div></div></div><br class="yiv8800244917" clear="none"><br class="yiv8800244917" clear="none"></div> </div> </div>  </div></div></div></div></blockquote></div><br class="yiv8800244917" clear="none"></div></div></div></div><br><br></div> </div> </div>  </div></div></body></html>