Closed theladyjaye closed 7 years ago
It does download everything with:
.Package(url: "https://github.com/jpsim/Yams.git", Version(0, 2, 0)),
It doesn't compile however (obviously since 0.1.4 is the target dependency I would not expect 0.2.0 would)
Which revision are you using? I probably need to make a new tag. You need to use a commit after 73b018ee462c211bc8e22dcbde5dde73ddc38d96 which should resolve this issue.
same using master. and swift package generate-xcodeproj --xcconfig-overrides settings.xcconfig
Ok I just tried this on an macOS VM I made and replicate it locally now.
What is weird is that my usual dev machine doesn't have this problem. 🤔
SwiftPM AM I RIGHT!? 🤷🏻♂️🙋🏻♂️
I have the same issue :(
My guess is that you are not using Xcode 8.3 (I'm using Version 8.3 beta 3 (8W132p)
).
$ sudo xcode-select -switch /Applications/Xcode-beta.app/Contents/Developer
$ swift package --version
Apple Swift Package Manager - Swift 3.1.0-dev (swiftpm-12078)
$ swift build -Xswiftc -target -Xswiftc x86_64-apple-macosx10.11
Fetching https://github.com/RLovelett/SourceKitten.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/thoughtbot/Argo.git
Fetching https://github.com/edwardaux/Ogra.git
Fetching https://github.com/thoughtbot/Curry.git
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetching https://github.com/norio-nomura/Clang_C.git
Fetching https://github.com/Carthage/Commandant.git
Fetching https://github.com/thoughtbot/Runes.git
Fetching https://github.com/antitypical/Result.git
Fetching https://github.com/norio-nomura/SourceKit.git
Cloning https://github.com/RLovelett/SourceKitten.git
Resolving https://github.com/RLovelett/SourceKitten.git at 0.18.0-beta.1
Cloning https://github.com/jpsim/Yams.git
Resolving https://github.com/jpsim/Yams.git at 0.1.4
Cloning https://github.com/thoughtbot/Curry.git
Resolving https://github.com/thoughtbot/Curry.git at 3.0.0
Cloning https://github.com/norio-nomura/SourceKit.git
Resolving https://github.com/norio-nomura/SourceKit.git at 1.0.1
Cloning https://github.com/antitypical/Result.git
Resolving https://github.com/antitypical/Result.git at 3.1.0
Cloning https://github.com/norio-nomura/Clang_C.git
Resolving https://github.com/norio-nomura/Clang_C.git at 1.0.2
Cloning https://github.com/Carthage/Commandant.git
Resolving https://github.com/Carthage/Commandant.git at 0.11.3
Cloning https://github.com/edwardaux/Ogra.git
Resolving https://github.com/edwardaux/Ogra.git at 4.1.1
Cloning https://github.com/thoughtbot/Argo.git
Resolving https://github.com/thoughtbot/Argo.git at 4.1.2
Cloning https://github.com/drmohundro/SWXMLHash.git
Resolving https://github.com/drmohundro/SWXMLHash.git at 3.0.3
Cloning https://github.com/thoughtbot/Runes.git
Resolving https://github.com/thoughtbot/Runes.git at 4.0.1
Compile CYaml src/writer.c
Compile CYaml src/scanner.c
Compile CYaml src/reader.c
Compile CYaml src/parser.c
Compile CYaml src/loader.c
Compile CYaml src/emitter.c
Compile CYaml src/api.c
Compile CYaml src/dumper.c
Compile Swift Module 'SWXMLHash' (2 sources)
Compile Swift Module 'Result' (2 sources)
Compile Swift Module 'Curry' (1 sources)
Compile Swift Module 'Runes' (3 sources)
Linking CYaml
Compile Swift Module 'Argo' (19 sources)
Compile Swift Module 'Yams' (2 sources)
Compile Swift Module 'Commandant' (9 sources)
/Users/lovelett/Source/langserver-swift/.build/checkouts/Yams.git-8068124914099325722/Sources/Yams/Yams.swift:141:76: warning: '-' is deprecated: Mixed-type subtraction is deprecated. Please use explicit type conversion.
let newNode: (Int32) -> Node = { Node(nodes: nodes, node: nodes[$0 - 1]) }
^
Compile Swift Module 'SourceKittenFramework' (33 sources)
Compile Swift Module 'Ogra' (1 sources)
/Users/lovelett/Source/langserver-swift/.build/checkouts/SourceKitten.git--5781163794506590952/Source/SourceKittenFramework/library_wrapper.swift:20:55: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
fatalError("Finding symbol \(symbol) failed: \(errorString)")
^~~~~~~~~~~~~
/Users/lovelett/Source/langserver-swift/.build/checkouts/SourceKitten.git--5781163794506590952/Source/SourceKittenFramework/library_wrapper.swift:20:56: note: use 'String(describing:)' to silence this warning
fatalError("Finding symbol \(symbol) failed: \(errorString)")
~^~~~~~~~~~~~
String(describing: )
/Users/lovelett/Source/langserver-swift/.build/checkouts/SourceKitten.git--5781163794506590952/Source/SourceKittenFramework/library_wrapper.swift:20:56: note: provide a default value to avoid this warning
fatalError("Finding symbol \(symbol) failed: \(errorString)")
~^~~~~~~~~~~~
?? <#default value#>
Compile Swift Module 'sourcekitten' (10 sources)
Compile Swift Module 'JSONRPC' (6 sources)
Compile Swift Module 'YamlConvertable' (3 sources)
Compile Swift Module 'LanguageServerProtocol' (42 sources)
Linking ./.build/debug/sourcekitten
Compile Swift Module 'LanguageServer' (2 sources)
Linking ./.build/debug/langserver-swift
Linking ./.build/debug/LanguageServer
I'm going to update the requirements on the README to require Xcode 8.3 beta 3 (8W132p). After Swift 3.1 is released I'll start using branches to provide backward compatibility to older Swift (Xcode) toolchains.
Unfortunately, at the moment this project relies heavily on the latest SwiftPM; hopefully this stabilizes a lot in the future. My apologies for the instability.
When trying to build with:
or