Closed ethercrow closed 7 years ago
There is no support for Swift 4 yet.
diff --git a/Package.swift b/Package.swift
index 5b70616..37aedc8 100644
--- a/Package.swift
+++ b/Package.swift
@@ -10,10 +10,10 @@ let package = Package(
],
dependencies: [
.Package(url: "https://github.com/RLovelett/SourceKit.git", majorVersion: 1),
- .Package(url: "https://github.com/thoughtbot/Argo.git", majorVersion: 4),
- .Package(url: "https://github.com/edwardaux/Ogra.git", majorVersion: 4),
+ .Package(url: "https://github.com/thoughtbot/Argo.git", "4.1.2"),
+ .Package(url: "https://github.com/edwardaux/Ogra.git", "4.1.2"),
.Package(url: "https://github.com/thoughtbot/Curry.git", majorVersion: 3),
- .Package(url: "https://github.com/RLovelett/swift-package-manager.git", majorVersion: 3)
+ .Package(url: "https://github.com/RLovelett/swift-package-manager.git", "3.1.1-beta.1"),
]
)
These changes would get rid of those SwiftPM errors but it still would fail to compile with Swift 4.
This should now be fixed on master.
Thank you!
Hi guys,
I tried to build using the instructions of release page, then, I got the same problem reported here.
Building from master branch, the build still getting erros, but a diferent one
wift build -Xswiftc -static-stdlib -Xswiftc -target -Xswiftc x86_64-apple-macosx10.11 -c release
Fetching https://github.com/RLovelett/Argo.git
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetching https://github.com/RLovelett/Ogra.git
Updating https://github.com/RLovelett/swift-package-manager.git
Updating https://github.com/thoughtbot/Curry.git
Updating https://github.com/thoughtbot/Runes.git
Updating https://github.com/RLovelett/SourceKit.git
Cloning https://github.com/RLovelett/SourceKit.git
Resolving https://github.com/RLovelett/SourceKit.git at 1.0.2
Cloning https://github.com/RLovelett/swift-package-manager.git
Resolving https://github.com/RLovelett/swift-package-manager.git at swift-4.1-branch
Cloning https://github.com/thoughtbot/Curry.git
Resolving https://github.com/thoughtbot/Curry.git at 4.0.1
Cloning https://github.com/thoughtbot/Runes.git
Resolving https://github.com/thoughtbot/Runes.git at 4.1.1
Cloning https://github.com/RLovelett/Argo.git
Resolving https://github.com/RLovelett/Argo.git at swift-4.1-macOS-and-linux
Cloning https://github.com/drmohundro/SWXMLHash.git
Resolving https://github.com/drmohundro/SWXMLHash.git at 4.7.0
Cloning https://github.com/RLovelett/Ogra.git
Resolving https://github.com/RLovelett/Ogra.git at master
Compile clibc libc.c
Compile Swift Module 'PackageDescription' (6 sources)
Compile Swift Module 'PackageDescription4' (9 sources)
Compile Swift Module 'Runes' (9 sources)
Compile Swift Module 'SWXMLHash' (3 sources)
Compile Swift Module 'Curry' (1 sources)
Compile Swift Module 'Argo' (17 sources)
Compile Swift Module 'libc' (1 sources)
Compile Swift Module 'POSIX' (11 sources)
Compile Swift Module 'SourceKitter' (11 sources)
Compile Swift Module 'Ogra' (1 sources)
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:17:19: error: 'init(subsystem:category:)' is only available on OS X 10.12 or newer
private let log = OSLog(subsystem: "me.lovelett.langserver-swift", category: "SourceKit")
^
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:98:13: error: 'os_log(_:dso:log:type:_:)' is only available on OS X 10.12 or newer
os_log("%{public}@", log: log, type: .default, description)
^
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:98:13: note: add 'if #available' version check
os_log("%{public}@", log: log, type: .default, description)
^
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:92:17: note: add @available attribute to enclosing instance method
public func request() -> Decoded<JSON> {
^
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:21:20: note: add @available attribute to enclosing class
public final class SourceKit {
^
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:98:51: error: 'default' is only available on OS X 10.12 or newer
os_log("%{public}@", log: log, type: .default, description)
^
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:98:51: note: add 'if #available' version check
os_log("%{public}@", log: log, type: .default, description)
^
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:92:17: note: add @available attribute to enclosing instance method
public func request() -> Decoded<JSON> {
^
/Users/terced-janio/Works/labs/swift/langserver-swift/Sources/SourceKitter/Types/SourceKit.swift:21:20: note: add @available attribute to enclosing class
public final class SourceKit {
^
error: terminated(1): /Library/Developer/CommandLineTools/usr/bin/swift-build-tool -f /Users/terced-janio/Works/labs/swift/langserver-swift/.build/release.yaml main output:
Build with make debug
works fine anyway.
Hi @jancassio,
AFAIK you need to build against x86_64-apple-macosx10.12
, not x86_64-apple-macosx10.11
.