<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Can you double-check that all of your Utilities headers are Public or Private headers (not Project)? You can check this under the Build Phases tab for the framework target.</div><div class=""><br class=""></div><div class="">If that doesn't do it, we can probably help more with a bug report, if you're willing to share your project.</div><div class=""><br class=""></div><div class="">Jordan</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 6, 2016, at 6:47, Thomas Abend via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif" class="">Since moving a mixed Swift and Objective-c project to XCode 8 with Swift 2.3, I have been getting a "Command failed due to signal: Segmentation fault: 11" error every time I run my tests after making a change in any of the test files.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif" class="">When I click on the error for more information I see:</p><pre class="gmail-prettyprint gmail-default gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;background-color:rgb(239,240,241);color:rgb(57,51,24);word-wrap:normal"><code style="margin:0px;padding:0px;border:0px;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit" class=""><span class="gmail-tag" style="margin:0px;padding:0px;border:0px;color:rgb(125,39,39)"><module-includes></span><span class="gmail-pln" style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">:1:9: note: in file included from </span><span class="gmail-tag" style="margin:0px;padding:0px;border:0px;color:rgb(125,39,39)"><module-includes></span><span class="gmail-pln" style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">:1:
#import "Headers/Utilities.h"
^
/Users/.../Utilities.framework/Headers/Utilities.h:18:9: error: include of non-modular header inside framework module 'Utilities'
#import </span><span class="gmail-tag" style="margin:0px;padding:0px;border:0px;color:rgb(125,39,39)"><Utilities</span><span class="gmail-pun" style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">/</span><span class="gmail-atn" style="margin:0px;padding:0px;border:0px;color:rgb(230,67,32)">NSString</span><span class="gmail-pln" style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">+</span><span class="gmail-atn" style="margin:0px;padding:0px;border:0px;color:rgb(230,67,32)">Utilities</span><span class="gmail-pln" style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">.</span><span class="gmail-atn" style="margin:0px;padding:0px;border:0px;color:rgb(230,67,32)">h</span><span class="gmail-tag" style="margin:0px;padding:0px;border:0px;color:rgb(125,39,39)">></span><span class="gmail-pln" style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">
^</span></code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif" class="">And basically just a bunch of similar errors following that ending in:</p><pre class="gmail-prettyprint gmail-default gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;background-color:rgb(239,240,241);color:rgb(57,51,24);word-wrap:normal"><code style="margin:0px;padding:0px;border:0px;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit" class=""><span class="gmail-tag" style="margin:0px;padding:0px;border:0px;color:rgb(125,39,39)"><unknown></span><span class="gmail-pln" style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">:0: error: could not build Objective-C module 'Utilities'</span></code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif" class="">Utilities in this case is a framework that I made. All of the headers in the Utilities.h file are imported with angle brackets and the headers are marked as public.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif" class="">After it segfaults, it will run properly until I make a change to the test file. It only has this issue when testing, not when building or running.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif" class="">Other things I've tried:</p><ul style="margin:0px 0px 1em 30px;padding:0px;border:0px;font-size:15px;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif" class=""><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word" class="">Changing the framework and tests to allow non modular includes</li><li style="margin:0px;padding:0px;border:0px;word-wrap:break-word" class="">Enabling/disabling bitcode</li></ul><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif" class="">Any help would be appreciated.</p></div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>