<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">A workaround is to add <span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">SWIFT_INDEX_STORE_ENABLE=NO </span>as a build time setting in Xcode, which prevents this argument being added to the call to swiftc.<div class=""><br class=""></div><div class=""><img apple-inline="yes" id="D174DDE7-DF53-43B7-ABE5-7AA0A3B5BD99" width="544" height="169" src="cid:A297D986-2FAE-4E61-91D2-EA79B8588BBD@virgin.passengerwifi.com" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 5 Jul 2017, at 02:02, Anders Hasselqvist 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="">Hi,<div class=""><br class=""></div><div class="">I've been trying to use the swift4 snapshot toolchains with Xcode9 beta with little success.<br class=""></div><div class=""><br class=""></div><div class="">When building I get the error:<br class=""></div><div class="">"</div><div class=""><span style="font-family:Menlo;font-size:11px" class=""><unknown>:0: error: unknown argument: '-index-store-path'</span></div><div style="margin: 0px 0px 0px 12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Command /Library/Developer/Toolchains/swift-4.0-DEVELOPMENT-SNAPSHOT-2017-06-29-a.xctoolchain/usr/bin/swiftc failed with exit code 1</div><div class="">"</div><div class=""><br class=""></div><div class="">I believe that this because of missing "indexing while building" support in the open source swift in the currently available snapshots. (The feature was merged just a few days ago: <a href="https://github.com/apple/swift/pull/10726" class="">https://github.com/apple/swift/pull/10726</a>)</div><div class=""><br class=""></div><div class="">Is there a way to disable "indexing while building" in Xcode9?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Anders</div><div class=""><br class=""></div></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=""></div></body></html>