SwiftLint: Build fails on macOS 10.12 Sierra GM
I’m a maintainer of Homebrew, and we’re in the process of testing and packaging things for Sierra, which will be out in a few days.
When we build the latest release, or even the master branch with
make prefix_install PREFIX=<prefix> TEMPORARY_FOLDER=<buildpath>SwiftLint.dst
Here’s what we get:
xcodebuild -workspace 'SwiftLint.xcworkspace' -scheme 'swiftlint' DSTROOT=/private/tmp/swiftlint-20160915-55561-13o1han/SwiftLint.dst OTHER_LDFLAGS=-Wl,-headerpad_max_install_names -configuration Debug clean
*** Updating submodules...
Build settings from command line:
DSTROOT = /private/tmp/swiftlint-20160915-55561-13o1han/SwiftLint.dst
OTHER_LDFLAGS = -Wl,-headerpad_max_install_names
=== CLEAN TARGET SWXMLHash OSX OF PROJECT SWXMLHash WITH CONFIGURATION Debug ===
Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
=== CLEAN TARGET Yaml OSX OF PROJECT Yaml WITH CONFIGURATION Debug ===
Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
** CLEAN FAILED **
The following build commands failed:
Check dependencies
Check dependencies
(2 failures)
Full log is here (it might get purged after a while though).
Looks like your project hasn’t been configured for Xcode 8 so that you can still compile Swift 2?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 15
- Comments: 16
I merged https://github.com/realm/SwiftLint/pull/771 to master. Now,
brew install --HEAD swiftlintworks on Sierra:@zmwangx Do we need new release to avoid migrating the swiftlint formula to boneyard in Homebrew?
I confirmed that
brew install swiftlintsuccess on Sierra.@norio-nomura Any news on the release?
@hashier here’s the log of the installation: https://gist.github.com/matteocrippa/5874fbd2b12bb2c56c4037db7caa6859
Seems a mix of permission and missing directories, but it’s a fresh install of 10.12.1.
@norio-nomura I tested
brew install --HEAD swiftlintbut won’t work for me on10.12.1Any update on this? It’s been more than a week since Xcode 8’s release and Sierra has officially landed too. If we don’t get a proper response in the next few days we may have to consider migrating the formula to boneyard, at least temporarily.
(You probably should care because
brew install swiftlintseems to be your preferred method of installation.)