Xcode build broken with latest snapshot


(Ian Partridge) #1

Hi,

Just back from vacation, I'm trying to update my Xcode development
environment for Foundation to the latest levels.

With Xcode 9 beta 2, swift.org DEVELOPMENT-SNAPSHOT-2017-06-26-a, and
latest master of swift-corelibs-foundation and swift-corelibs-xctest the
build fails in the SwiftXCTest target with:

<unknown>:0: error: unknown argument: '-index-store-path'

Command
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2017-06-26-a.xctoolchain/usr/bin/swiftc
failed with exit code 1
It looks like the -index-store-path option has been removed from the
compiler recently, but is still being referred to somewhere. I have poked
around but can't see where this option is coming from.

The full option being passed to the compiler is -index-store-path
/Users/ipartrid/Library/Developer/Xcode/DerivedData/Foundation-dlbuoxyagtlausbjtyopapynebeb/Index/DataStore

Can anyone advise?

···

--
Ian Partridge


(Ian Partridge) #2

With Xcode 9 beta 2, swift.org DEVELOPMENT-SNAPSHOT-2017-06-26-a, and

latest master of swift-corelibs-foundation and swift-corelibs-xctest the
build fails in the SwiftXCTest target with:

<unknown>:0: error: unknown argument: '-index-store-path'

Command

/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2017-06-26-a.xctoolchain/usr/bin/swiftc
failed with exit code 1

To answer my own question - I was able to get the Xcode build working by
running:

defaults write com.apple.dt.Xcode IDEIndexEnableBoltIndex NO

Many thanks to Simon Evans for pointing me at the right incantation!

···

On 27 June 2017 at 15:42, Ian Partridge <ipartridge@gmail.com> wrote:

--
Ian Partridge


(Philippe Hausler) #3

You can also add a user defined Xcode setting so that others don’t have to set that default: SWIFT_INDEX_STORE_ENABLE and set it to NO

···

On Jun 27, 2017, at 8:29 AM, Ian Partridge via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

On 27 June 2017 at 15:42, Ian Partridge <ipartridge@gmail.com <mailto:ipartridge@gmail.com>> wrote:
> With Xcode 9 beta 2, swift.org <http://swift.org/> DEVELOPMENT-SNAPSHOT-2017-06-26-a, and latest master of swift-corelibs-foundation and swift-corelibs-xctest the build fails in the SwiftXCTest target with:
>
> <unknown>:0: error: unknown argument: '-index-store-path'
>
> Command /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2017-06-26-a.xctoolchain/usr/bin/swiftc failed with exit code 1

To answer my own question - I was able to get the Xcode build working by running:

defaults write com.apple.dt.Xcode IDEIndexEnableBoltIndex NO

Many thanks to Simon Evans for pointing me at the right incantation!

--
Ian Partridge
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev