A workaround is to add SWIFT_INDEX_STORE_ENABLE=NO as a build time setting in Xcode, which prevents this argument being added to the call to swiftc.
> On 5 Jul 2017, at 02:02, Anders Hasselqvist via swift-users > <swift-users@swift.org> wrote: > > Hi, > > I've been trying to use the swift4 snapshot toolchains with Xcode9 beta with > little success. > > When building I get the error: > " > <unknown>:0: error: unknown argument: '-index-store-path' > Command > /Library/Developer/Toolchains/swift-4.0-DEVELOPMENT-SNAPSHOT-2017-06-29-a.xctoolchain/usr/bin/swiftc > failed with exit code 1 > " > > 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: https://github.com/apple/swift/pull/10726 > <https://github.com/apple/swift/pull/10726>) > > Is there a way to disable "indexing while building" in Xcode9? > > Thanks, > Anders > > _______________________________________________ > swift-users mailing list > swift-users@swift.org > https://lists.swift.org/mailman/listinfo/swift-users
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users