A package manager that installs and runs executable Swift packages

Overview

Mint 🌱

Swift Versions Platforms Git Version License

A package manager that installs and runs Swift command line tool packages.

$ mint run realm/[email protected]

This would install and run SwiftLint version 0.40.3

Mint is designed to be used with Swift command line tools that build with the Swift Package Manager. It makes installing, running and distributing these tools much easier.

  • easily run a specific version of a package
  • link a package globally
  • builds are cached by version
  • use different versions of a package side by side
  • easily run the latest version of a package
  • distribute your own packages without recipes and formulas
  • specify a list of versioned packages in a Mintfile for easy use

Homebrew is a popular method of distributing Swift executables, but that requires creating a formula and then maintaining that formula. Running specific versions of homebrew installations can also be tricky as only one global version is installed at any one time. Mint installs your package via SPM and lets you run multiple versions of that package, which are installed and cached in a central place.

If your Swift executable package builds with SPM, then it can be run with Mint! See Support for details.

Why is it called Mint?

Swift Packager Manager Tools -> SPMT -> Spearmint -> Mint! 🌱 😄

Mint: a place where something is produced or manufactured

Installing

Make sure Xcode 10.2 is installed first.

Homebrew

$ brew install mint

Make

$ git clone https://github.com/yonaskolb/Mint.git
$ cd Mint
$ make

Using Mint itself!

Install
$ git clone https://github.com/yonaskolb/Mint.git
$ cd Mint
$ swift run mint install yonaskolb/mint
Update
$ mint install yonaskolb/mint

Swift Package Manager

Use CLI

$ git clone https://github.com/yonaskolb/Mint.git
$ cd Mint
$ swift run mint

Use as dependency

Add the following to your Package.swift file's dependencies:

.package(url: "https://github.com/yonaskolb/Mint.git", from: "0.15.0"),

And then import wherever needed: import MintKit

Road to 1.0

Until 1.0 is reached, minor versions will be breaking.

Usage

Run mint help to see usage instructions.

  • install: Installs a package, so it can be run with run later, and also links that version globally
  • run: Runs a package. This will install it first if it isn't already installed, though won't link it globally. It's useful for running a certain version.
  • list: Lists all currently installed packages and versions.
  • which: Print the path to an installed package executable.
  • uninstall: Uninstalls a package by name.
  • bootstrap: Installs all the packages in your Mintfile, by default, without linking them globally

Package reference

run and install commands require a package reference parameter. This can be a shorthand for a github repo (mint install realm/SwiftLint) or a fully qualified git path (mint install https://github.com/realm/SwiftLint.git). In the case of run you can also just pass the name of the repo if it is already installed (run swiftlint) or in the Mintfile. An optional version can be specified by appending @version, otherwise the newest tag or master will be used. Note that if you don't specify a version, the current tags must be loaded remotely each time.

Examples

$ mint run yonaskolb/[email protected] # run the only executable
$ mint run yonaskolb/[email protected] --spec spec.yml # pass some arguments
$ mint run yonaskolb/[email protected] xcodegen --spec spec.yml # specify a specific executable
$ mint run --executable xcodegen yonaskolb/[email protected] --spec spec.yml # specify a specific executable in case the first argument is the same name as the executable
$ mint install yonaskolb/[email protected] --no-link # installs a certain version but doesn't link it globally
$ mint install yonaskolb/XcodeGen # install newest tag
$ mint install yonaskolb/XcodeGen@master --force #reinstall the master branch
$ mint run yonaskolb/[email protected] # run 2.18.0
$ mint run XcodeGen # use newest tag and find XcodeGen in installed packages

Linking

By default Mint symlinks your installs into usr/local/bin on mint install, unless --no-link is passed. This means a package will be accessible from anywhere, and you don't have to prepend commands with mint run package. Note that only one linked version can be used at a time though. If you need to run a specific older version use mint run.

Mintfile

A Mintfile can specify a list of versioned packages. It makes installing and running these packages easy, as the specific repos and versions are centralized.

Simply place this file in the directory you're running Mint in. The format of the Mintfile is simply a list of packages in the same form as the usual package parameter:

Then you can simply run a package with:

mint run xcodegen

Or install all the packages (without linking them globally) in one go with:

mint bootstrap

If you prefer to link them globally, do such with:

mint bootstrap --link

Advanced

  • You can use --silent in mint run to silence any output from mint itself. Useful if forwarding output somewhere else.
  • You can set MINT_PATH and MINT_LINK_PATH envs to configure where mint caches builds, and where it symlinks global installs. These default to /usr/local/lib/mint and /usr/local/bin respectively
  • You can use mint install --force to reinstall a package even if it's already installed. This shouldn't be required unless you are pointing at a branch and want to update it.

Linux

Mint works on Linux but has some limitations:

  • linux doesn't support building with a statically linked version of Swift. This means when a new version of swift comes out the old installs won't work on linux.
  • Linux is case sensitive so you must specify the correct case for repo urls as well as executables.

Support

If your Swift command line tool builds with the Swift Package Manager than it will automatically install and run with mint!

Make sure you have defined an executable product type in the products list within your Package.swift.

let package = Package(
    name: "Foo",
    products: [
        .executable(name: "foo", targets: ["Foo"]),
    ],
    targets: [
      .target(name: "Foo"),
      ...
    ]
)

You can then add this to the Installing section in your readme:

### [Mint](https://github.com/yonaskolb/mint)
```
$ mint install github_name/repo_name
```

Resources

Since Swift 5.3 resources are now built into the Swift Package manager, so if you're targetting that version or above the Package.resources file is no longer necessary https://github.com/apple/swift-evolution/blob/master/proposals/0271-package-manager-resources.md

The Swift Package Manager doesn't yet have a way of specifying resources directories. If your tool requires access to resources from the repo you require a custom Package.resources file. This is a plain text file that lists the resources directories on different lines:

MyFiles
MyOtherFiles

If this file is found in you repo, then all those directories will be copied into the same path as the executable.

A list of popular Mint compatible packages 🌱

Feel free to add your own!

Comments
  • Install directory does not have write permissions when installing via brew

    Install directory does not have write permissions when installing via brew

    
    ~/dev/projects/danger/peril add_auth_api
    ❯ brew tap yonaskolb/mint https://github.com/yonaskolb/mint.git
    Updating Homebrew...
    ==> Tapping yonaskolb/mint
    Cloning into '/usr/local/Homebrew/Library/Taps/yonaskolb/homebrew-mint'...
    remote: Counting objects: 22, done.
    remote: Compressing objects: 100% (18/18), done.
    remote: Total 22 (delta 0), reused 20 (delta 0), pack-reused 0
    Unpacking objects: 100% (22/22), done.
    Tapped 1 formula (58 files, 56.6KB)
    
    ~/dev/projects/danger/peril add_auth_api 13s
    ❯ brew install mint
    ==> Installing mint from yonaskolb/mint
    ==> Downloading https://github.com/yonaskolb/Mint/archive/0.3.0.tar.gz
    ==> Downloading from https://codeload.github.com/yonaskolb/Mint/tar.gz/0.3.0
    ######################################################################## 100.0%
    ==> make install PREFIX=/usr/local/Cellar/mint/0.3.0
    🍺  /usr/local/Cellar/mint/0.3.0: 4 files, 10.6MB, built in 53 seconds
    
    ~/dev/projects/danger/peril add_auth_api
    ❯ mint install danger/danger-swift
    🌱  Error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “github.com_danger_danger-swift” in the folder “packages”." UserInfo={NSFilePath=/usr/local/mint/packages/github.com_danger_danger-swift, NSUnderlyingError=0x7fd4e9501f00 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
    
    opened by orta 17
  • Option to install version of tool globally

    Option to install version of tool globally

    This would place a specific version of the executable in /usr/local/bin so they could be run without mint

    Though what would happen with resources? Put them in a default place like /usr/local/share/toolname?

    feature 
    opened by yonaskolb 13
  • Installing master on Ubuntu 16.04 fails – DispatchQueue.global(qos:)?

    Installing master on Ubuntu 16.04 fails – DispatchQueue.global(qos:)?

    I'm currently trying to get mint installed on an Ubuntu 16.04 system (CI) but I get the following error using Swift 4.1.3:

    + git clone --depth=1 https://github.com/yonaskolb/Mint.git
    Cloning into 'Mint'...
    + cd Mint
    + make
    swift build --disable-sandbox -c release -Xswiftc -static-stdlib
    Compile clibc libc.c
    Compile Swift Module 'PathKit' (1 sources)
    Compile Swift Module 'Rainbow' (11 sources)
    Compile Swift Module 'SwiftCLI' (20 sources)
    Compile Swift Module 'SPMLibc' (1 sources)
    Compile Swift Module 'POSIX' (11 sources)
    Compile Swift Module 'Basic' (37 sources)
    Compile Swift Module 'Utility' (19 sources)
    Compile Swift Module 'MintKit' (9 sources)
    Compile Swift Module 'MintCLI' (9 sources)
    Foundation9OperationC6finishyyF: error: undefined reference to '_T08Dispatch0A5QueueC6globalAcA0A3QoSV0D6SClassO3qos_tFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC6finishyyF: error: undefined reference to '_NSConcreteStackBlock'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC6finishyyF: error: undefined reference to '_Block_copy'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC6finishyyF: error: undefined reference to '_T08Dispatch0A5QueueC5asyncyAA0A5GroupCSg5group_AA0A3QoSV3qosAA0A13WorkItemFlagsV5flagsyyXB7executetF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC13addDependencyyACF: error: undefined reference to '_T08Dispatch0A5GroupCN'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC13addDependencyyACF: error: undefined reference to '_T08Dispatch0A5GroupC5enteryyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC16removeDependencyyACF: error: undefined reference to '_T08Dispatch0A5GroupC5leaveyyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC17waitUntilFinishedyyF: error: undefined reference to '_T08Dispatch0A5GroupC4waityyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC15_waitUntilReadyyyF: error: undefined reference to '_T08Dispatch0A5GroupC4waityyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation9OperationC15_waitUntilReadyyyF: error: undefined reference to '_T08Dispatch0A5GroupC4waityyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC012__underlyingC08Dispatch0eC0CSgvmytfU_: error: undefined reference to '_T08Dispatch0A5QueueC11setSpecificyAA0aD3KeyCyxG3key_xSg5valuetlF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC012__underlyingC08Dispatch0eC0CSgvmytfU_: error: undefined reference to '_T08Dispatch0A5QueueC11setSpecificyAA0aD3KeyCyxG3key_xSg5valuetlF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC10queueGroup8Dispatch0fE0Cvpfi: error: undefined reference to '_T08Dispatch0A5GroupCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC10queueGroup8Dispatch0fE0Cvpfi: error: undefined reference to '_T08Dispatch0A5GroupCACycfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC011_underlyingC08Dispatch0eC0Cvg: error: undefined reference to '_T08Dispatch0A5QueueC10AttributesV10concurrentAEvau'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC011_underlyingC08Dispatch0eC0Cvg: error: undefined reference to '_T08Dispatch0A9SemaphoreCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC011_underlyingC08Dispatch0eC0Cvg: error: undefined reference to '_T08Dispatch0A9SemaphoreCACSi5value_tcfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC011_underlyingC08Dispatch0eC0Cvg: error: undefined reference to '_T08Dispatch0A9SemaphoreCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC011_underlyingC08Dispatch0eC0Cvg: error: undefined reference to '_T08Dispatch0A9SemaphoreCACSi5value_tcfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC011_underlyingC08Dispatch0eC0Cvg: error: undefined reference to '_T08Dispatch0A9SemaphoreCACSi5value_tcfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC011_underlyingC08Dispatch0eC0Cvg: error: undefined reference to '_T08Dispatch0A6ObjectC7suspendyyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueCACycfc: error: undefined reference to '_T08Dispatch0A5GroupCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueCACycfc: error: undefined reference to '_T08Dispatch0A5GroupCACycfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC04_runB0yyF: error: undefined reference to '_T08Dispatch0A5GroupC4waityyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC11isSuspendedSbvs: error: undefined reference to '_T08Dispatch0A6ObjectC7suspendyyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC11isSuspendedSbvs: error: undefined reference to '_T08Dispatch0A6ObjectC6resumeyyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function globalinit_33_638D947C432FE0FF6C02252F78192DF4_func1: error: undefined reference to '_T08Dispatch0A11SpecificKeyCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function globalinit_33_638D947C432FE0FF6C02252F78192DF4_func1: error: undefined reference to '_T08Dispatch0A11SpecificKeyCACyxGycfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC7currentACSgvgZ: error: undefined reference to '_T08Dispatch0A5QueueC11getSpecificxSgAA0aD3KeyCyxG3key_tlFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function globalinit_33_638D947C432FE0FF6C02252F78192DF4_func2: error: undefined reference to '_T08Dispatch0A5QueueC4mainACvgZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T0s20_ArrayBufferProtocolPsE025_forceCreateUniqueMutableB0s011_ContiguousaB0Vy7ElementQzGSi8newCount_Si16requiredCapacitytFAEy8Dispatch0N5GroupCG_Tg5: error: undefined reference to '_T08Dispatch0A5GroupCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC012__underlyingC08Dispatch0eC0CSgvWTf4gn_n: error: undefined reference to '_T08Dispatch0A5QueueC11setSpecificyAA0aD3KeyCyxG3key_xSg5valuetlF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC012__underlyingC08Dispatch0eC0CSgvWTf4gn_n: error: undefined reference to '_T08Dispatch0A5QueueC11setSpecificyAA0aD3KeyCyxG3key_xSg5valuetlF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFTf4gnn_n: error: undefined reference to '_T08Dispatch0A13WorkItemFlagsV10enforceQoSACvau'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFTf4gnn_n: error: undefined reference to '_T08Dispatch0A5GroupC5enteryyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFTf4gnn_n: error: undefined reference to '_NSConcreteStackBlock'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFTf4gnn_n: error: undefined reference to '_Block_copy'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFTf4gnn_n: error: undefined reference to '_T08Dispatch0A8WorkItemCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFTf4gnn_n: error: undefined reference to '_T08Dispatch0A8WorkItemCAcA0A3QoSV3qos_AA0abC5FlagsV5flagsyyXB5blocktcfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFTf4gnn_n: error: undefined reference to '_T08Dispatch0A5QueueC5asyncyAA0A5GroupC5group_AA0A8WorkItemC7executetF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFyAFcfU0_yycfU_TA: error: undefined reference to '_T08Dispatch0A9SemaphoreC4waityyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFyAFcfU0_yycfU_TA: error: undefined reference to '_T08Dispatch0A9SemaphoreC6signalSiyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Operation.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Operation.swift.o:function _T010Foundation14OperationQueueC13addOperationsySayAA0B0CG_Sb17waitUntilFinishedtFyAFcfU0_yycfU_TA: error: undefined reference to '_T08Dispatch0A5GroupC5leaveyyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Process.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Process.swift.o:function _T010Foundation7ProcessC5setup33_05FBE738056ADAC488E6D2B534411459LLyyFZyycfU_yycfU_: error: undefined reference to '_NSConcreteStackBlock'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Process.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Process.swift.o:function _T010Foundation7ProcessC5setup33_05FBE738056ADAC488E6D2B534411459LLyyFZyycfU_yycfU_: error: undefined reference to '_Block_copy'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Process.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Process.swift.o:function _T010Foundation7ProcessC5setup33_05FBE738056ADAC488E6D2B534411459LLyyFZyycfU_yycfU_: error: undefined reference to '_Block_release'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(URLSession.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/URLSession.swift.o:function _T010Foundation10URLSessionC24finishTasksAndInvalidateyyF: error: undefined reference to '_T08Dispatch0A5QueueC5asyncyAA0A5GroupCSg5group_AA0A3QoSV3qosAA0A13WorkItemFlagsV5flagsyyXB7executetF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(URLSession.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/URLSession.swift.o:function _T010Foundation10URLSessionC8dataTask33_1935C07EE287982D980AA89BB85ACEFALLAA0b4DataD0CAC8_RequestAELLO4with_AC01_D8RegistryC10_BehaviourO9behaviourtFTf4ggn_n: error: undefined reference to '_T08Dispatch0A5QueueC5asyncyAA0A5GroupCSg5group_AA0A3QoSV3qosAA0A13WorkItemFlagsV5flagsyyXB7executetF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(URLSessionTask.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/URLSessionTask.swift.o:function _T010Foundation14URLSessionTaskC5_BodyO03getD6Lengths6UInt64VSgyKF: error: undefined reference to '_T08Dispatch0A4DataV5countSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(URLSessionTask.swift.o)(.text+0x9d61): error: undefined reference to '_T08Dispatch0A4DataVN'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(NativeProtocol.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/NativeProtocol.swift.o:function _T010Foundation15_NativeProtocolC4fillAA11_EasyHandleC18_WriteBufferResultOSrys4Int8VG05writeH0_tF: error: undefined reference to '_T08Dispatch0A4DataV5countSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(NativeProtocol.swift.o)(.text+0xc3f1): error: undefined reference to '_T08Dispatch0A4DataVN'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(HTTPURLProtocol.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/http/HTTPURLProtocol.swift.o:function _T010Foundation16_HTTPURLProtocolC19configureEasyHandleyAA10URLRequestV3for_tF: error: undefined reference to '_T08Dispatch0A8WorkItemCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(HTTPURLProtocol.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/http/HTTPURLProtocol.swift.o:function _T010Foundation16_HTTPURLProtocolC19configureEasyHandleyAA10URLRequestV3for_tF: error: undefined reference to '_T08Dispatch0A8WorkItemCAcA0A3QoSV3qos_AA0abC5FlagsV5flagsyyXB5blocktcfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Data.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Data.swift.o:function _T010Foundation4DataVACxcs8SequenceRzs5UInt8V7ElementRtzlufC: error: undefined reference to '_Block_release'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Data.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Data.swift.o:function _T0s26RangeReplaceableCollectionPsE6appendy7ElementQzF10Foundation4DataV_Tgq5: error: undefined reference to '_Block_release'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Data.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Data.swift.o:function _T010Foundation4DataV6appendyx10contentsOf_ts8SequenceRzs5UInt8V7ElementRtzlF: error: undefined reference to '_Block_release'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFBase.c.o):CoreFoundation/Base.subproj/CFBase.c:function __CFAllocatorInitialize: error: undefined reference to 'dispatch_once'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFBase.c.o):CoreFoundation/Base.subproj/CFBase.c:function CFNullGetTypeID: error: undefined reference to 'dispatch_once'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFBase.c.o):CoreFoundation/Base.subproj/CFBase.c:__block_literal_global: error: undefined reference to '_NSConcreteGlobalBlock'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFBase.c.o):CoreFoundation/Base.subproj/CFBase.c:__block_literal_global.3: error: undefined reference to '_NSConcreteGlobalBlock'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUtilities.c.o):CoreFoundation/Base.subproj/CFUtilities.c:function _CFOSLog: error: undefined reference to 'dispatch_once'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUtilities.c.o):CoreFoundation/Base.subproj/CFUtilities.c:function CFCopySystemVersionString: error: undefined reference to 'dispatch_once'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUtilities.c.o):CoreFoundation/Base.subproj/CFUtilities.c:__block_literal_global: error: undefined reference to '_NSConcreteGlobalBlock'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUtilities.c.o):CoreFoundation/Base.subproj/CFUtilities.c:__block_literal_global.3: error: undefined reference to '_NSConcreteGlobalBlock'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function CFUUIDCreate: error: undefined reference to 'dispatch_sync'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function CFUUIDCreate: error: undefined reference to 'dispatch_sync'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function CFUUIDCreate: error: undefined reference to '_Block_object_dispose'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function CFUUIDCreate: error: undefined reference to '_Block_object_dispose'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function CFUUIDCreate: error: undefined reference to '_Block_object_dispose'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function __copy_helper_block_: error: undefined reference to '_Block_object_assign'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function __destroy_helper_block_: error: undefined reference to '_Block_object_dispose'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function CFUUIDCreateWithBytes: error: undefined reference to 'dispatch_sync'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function CFUUIDCreateFromString: error: undefined reference to 'dispatch_sync'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function __LOCKED_block_invoke: error: undefined reference to 'dispatch_queue_attr_make_with_qos_class'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function __LOCKED_block_invoke: error: undefined reference to 'dispatch_queue_create'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFUUID.c.o):CoreFoundation/Base.subproj/CFUUID.c:function __copy_helper_block_.9: error: undefined reference to '_Block_object_assign'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFBasicHash.c.o):CoreFoundation/Collections.subproj/CFBasicHash.c:function __copy_helper_block_: error: undefined reference to '_Block_object_assign'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFBasicHash.c.o):CoreFoundation/Collections.subproj/CFBasicHash.c:function __copy_helper_block_.1: error: undefined reference to '_Block_object_assign'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStorage.c.o):CoreFoundation/Collections.subproj/CFStorage.c:function __CFStorageEnumerateNodesInByteRangeWithBlock: error: undefined reference to 'dispatch_get_global_queue'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStorage.c.o):CoreFoundation/Collections.subproj/CFStorage.c:function __CFStorageEnumerateNodesInByteRangeWithBlock: error: undefined reference to 'dispatch_apply'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFDate.c.o):CoreFoundation/NumberDate.subproj/CFDate.c:function __CFTSRToDispatchTime: error: undefined reference to 'dispatch_time'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function ___CFSetupXMLInterface_block_invoke: error: undefined reference to 'xmlInitParser'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function ___CFSetupXMLInterface_block_invoke: error: undefined reference to 'xmlGetExternalEntityLoader'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function ___CFSetupXMLInterface_block_invoke: error: undefined reference to 'xmlSetExternalEntityLoader'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceNoNetExternalEntityLoader: error: undefined reference to 'xmlNoNetExternalEntityLoader'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _errorCallback: error: undefined reference to 'xmlCtxtGetLastError'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceSetStructuredErrorFunc: error: undefined reference to 'xmlSetStructuredErrorFunc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceCreatePushParserCtxt: error: undefined reference to 'xmlCreatePushParserCtxt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceCtxtUseOptions: error: undefined reference to 'xmlCtxtUseOptions'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceParseChunk: error: undefined reference to 'xmlParseChunk'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceStopParser: error: undefined reference to 'xmlStopParser'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceDestroyContext: error: undefined reference to 'xmlFreeDoc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceDestroyContext: error: undefined reference to 'xmlFreeParserCtxt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceSAX2GetLineNumber: error: undefined reference to 'xmlSAX2GetLineNumber'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceSAX2GetColumnNumber: error: undefined reference to 'xmlSAX2GetColumnNumber'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceSAX2InternalSubset: error: undefined reference to 'xmlSAX2InternalSubset'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceSAX2ExternalSubset: error: undefined reference to 'xmlSAX2ExternalSubset'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceGetPredefinedEntity: error: undefined reference to 'xmlGetPredefinedEntity'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDNewElementDesc: error: undefined reference to 'xmlAddElementDecl'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDNewElementDesc: error: undefined reference to 'xmlNewDtd'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDNewElementDesc: error: undefined reference to 'xmlAddElementDecl'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDNewElementDesc: error: undefined reference to 'xmlFreeDtd'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashLookup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashLookup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashLookup3'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashRemoveEntry3'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashLookup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashRemoveEntry'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashLookup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashRemoveEntry'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlUnlinkNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLUnlinkNode: error: undefined reference to 'xmlHashRemoveEntry'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDNewAttributeDesc: error: undefined reference to 'xmlAddAttributeDecl'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDNewAttributeDesc: error: undefined reference to 'xmlNewDtd'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDNewAttributeDesc: error: undefined reference to 'xmlAddAttributeDecl'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDNewAttributeDesc: error: undefined reference to 'xmlFreeDtd'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceSAX2GetEntity: error: undefined reference to 'xmlSAX2GetEntity'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceFreeEnumeration: error: undefined reference to 'xmlFreeEnumeration'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLInterfaceSAX2UnparsedEntityDecl: error: undefined reference to 'xmlSAX2UnparsedEntityDecl'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewNode: error: undefined reference to 'xmlNewNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyNode: error: undefined reference to 'xmlCopyDoc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyNode: error: undefined reference to 'xmlCopyDtd'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyNode: error: undefined reference to 'xmlCopyNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewDoc: error: undefined reference to 'xmlNewDoc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewProcessingInstruction: error: undefined reference to 'xmlNewPI'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewTextNode: error: undefined reference to 'xmlNewText'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewComment: error: undefined reference to 'xmlNewComment'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewProperty: error: undefined reference to 'xmlNewProp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetURI: error: undefined reference to 'xmlSearchNsByHref'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetURI: error: undefined reference to 'xmlNewNs'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetURI: error: undefined reference to 'xmlSetNs'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetURI: error: undefined reference to 'xmlFree'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetURI: error: undefined reference to 'xmlStrdup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetURI: error: undefined reference to 'xmlFree'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetURI: error: undefined reference to 'xmlStrdup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyName: error: undefined reference to 'xmlBuildQName'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyName: error: undefined reference to 'xmlFree'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetName: error: undefined reference to 'xmlNodeSetName'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyContent: error: undefined reference to 'xmlSnprintfElementContent'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyContent: error: undefined reference to 'xmlNodeGetContent'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyContent: error: undefined reference to 'xmlFree'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetContent: error: undefined reference to 'xmlStrlen'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetContent: error: undefined reference to 'xmlUnlinkNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetContent: error: undefined reference to 'xmlFreeDocElementContent'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetContent: error: undefined reference to 'xmlRegFreeRegexp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetContent: error: undefined reference to 'xmlFreeDocElementContent'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeSetContent: error: undefined reference to 'xmlNodeSetContent'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLParseDTDNode: error: undefined reference to 'xmlStrlen'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLParseDTDNode: error: undefined reference to 'xmlUnlinkNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeNode: error: undefined reference to 'xmlFreeNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeNode: error: undefined reference to 'xmlUnlinkNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeNode: error: undefined reference to 'xmlFreeEnumeration'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeNode: error: undefined reference to 'xmlDictOwns'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeNode: error: undefined reference to 'xmlDictOwns'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeNode: error: undefined reference to 'xmlDictOwns'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeNode: error: undefined reference to 'xmlDictOwns'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLEncodeEntities: error: undefined reference to 'xmlEncodeEntitiesReentrant'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocRootElement: error: undefined reference to 'xmlDocGetRootElement'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocSetRootElement: error: undefined reference to 'xmlDocSetRootElement'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocSetCharacterEncoding: error: undefined reference to 'xmlStrdup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocSetVersion: error: undefined reference to 'xmlStrdup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocDTD: error: undefined reference to 'xmlGetIntSubset'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocSetDTD: error: undefined reference to 'xmlAddPrevSibling'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocSetDTD: error: undefined reference to 'xmlAddChild'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeGetElementChildCount: error: undefined reference to 'xmlChildElementCount'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeAddChild: error: undefined reference to 'xmlAddChild'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeAddPrevSibling: error: undefined reference to 'xmlAddPrevSibling'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeAddNextSibling: error: undefined reference to 'xmlAddNextSibling'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeReplaceNode: error: undefined reference to 'xmlReplaceNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLGetDocEntity: error: undefined reference to 'xmlGetDocEntity'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLGetDTDEntity: error: undefined reference to 'xmlGetDtdEntity'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLGetParameterEntity: error: undefined reference to 'xmlGetParameterEntity'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyStringWithOptions: error: undefined reference to 'xmlBufferCreate'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyStringWithOptions: error: undefined reference to 'xmlSaveToBuffer'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyStringWithOptions: error: undefined reference to 'xmlSaveTree'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyStringWithOptions: error: undefined reference to 'xmlSaveClose'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyStringWithOptions: error: undefined reference to 'xmlBufferContent'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyStringWithOptions: error: undefined reference to 'xmlBufferFree'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodesForXPath: error: undefined reference to 'xmlXPathNewContext'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodesForXPath: error: undefined reference to 'xmlXPathRegisterNs'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodesForXPath: error: undefined reference to 'xmlXPathNodeEval'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodesForXPath: error: undefined reference to 'xmlXPathFreeContext'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodesForXPath: error: undefined reference to 'xmlXPathFreeObject'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLCopyPathForNode: error: undefined reference to 'xmlGetNodePath'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeHasProp: error: undefined reference to 'xmlHasProp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocPtrFromDataWithOptions: error: undefined reference to 'xmlReadMemory'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyLocalName: error: undefined reference to 'xmlBuildQName'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyLocalName: error: undefined reference to 'xmlSplitQName2'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyPrefix: error: undefined reference to 'xmlBuildQName'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNodeCopyPrefix: error: undefined reference to 'xmlSplitQName2'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocValidate: error: undefined reference to 'xmlNewValidCtxt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocValidate: error: undefined reference to 'xmlValidateDocument'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDocValidate: error: undefined reference to 'xmlFreeValidCtxt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewDTD: error: undefined reference to 'xmlNewDtd'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLParseDTDFromData: error: undefined reference to 'xmlParserInputBufferCreateMem'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLParseDTDFromData: error: undefined reference to 'xmlIOParseDTD'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLParseDTD: error: undefined reference to 'xmlParseDTD'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDGetElementDesc: error: undefined reference to 'xmlGetDtdElementDesc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDGetAttributeDesc: error: undefined reference to 'xmlGetDtdAttrDesc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDGetNotationDesc: error: undefined reference to 'xmlGetDtdNotationDesc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDGetEntityDesc: error: undefined reference to 'xmlNewDoc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDGetEntityDesc: error: undefined reference to 'xmlGetDtdEntity'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDGetEntityDesc: error: undefined reference to 'xmlFreeDoc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDGetEntityDesc: error: undefined reference to 'xmlGetParameterEntity'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLDTDGetPredefinedEntity: error: undefined reference to 'xmlGetPredefinedEntity'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNamespaces: error: undefined reference to 'xmlNewNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNamespaces: error: undefined reference to 'xmlNewNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLSetNamespaces: error: undefined reference to 'xmlFreeNsList'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLSetNamespaces: error: undefined reference to 'xmlCopyNamespace'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLSetNamespaces: error: undefined reference to 'xmlCopyNamespace'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNamespaceSetValue: error: undefined reference to 'xmlStrndup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNamespaceSetPrefix: error: undefined reference to 'xmlStrndup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewNamespace: error: undefined reference to 'xmlNewNs'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLNewNamespace: error: undefined reference to 'xmlNewNode'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLAddNamespace: error: undefined reference to 'xmlCopyNamespace'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLRemoveNamespace: error: undefined reference to 'xmlStrcmp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLRemoveNamespace: error: undefined reference to 'xmlStrcmp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLRemoveNamespace: error: undefined reference to 'xmlFreeNs'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeDocument: error: undefined reference to 'xmlFreeDoc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeDTD: error: undefined reference to 'xmlFreeDtd'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFXMLInterface.c.o):CoreFoundation/Parsing.subproj/CFXMLInterface.c:function _CFXMLFreeProperty: error: undefined reference to 'xmlFreeProp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to '_dispatch_get_main_queue_handle_4CF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_get_global_queue'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to '_dispatch_source_type_timer'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_source_create'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_retain'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_set_context'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_source_set_event_handler_f'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_source_set_cancel_handler_f'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_time'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_source_set_timer'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_resume'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_source_cancel'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopRun: error: undefined reference to 'dispatch_release'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRunLoopTimeoutCancel: error: undefined reference to 'dispatch_release'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFRunLoop.c.o):CoreFoundation/RunLoop.subproj/CFRunLoop.c:function __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__: error: undefined reference to '_dispatch_main_queue_callback_4CF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function _cfstream_solo_signalEventSync: error: undefined reference to 'dispatch_retain'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function _cfstream_solo_signalEventSync: error: undefined reference to 'dispatch_async'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function _cfstream_solo_signalEventSync: error: undefined reference to 'dispatch_release'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function _cfstream_shared_signalEventSync: error: undefined reference to 'dispatch_retain'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function _cfstream_shared_signalEventSync: error: undefined reference to 'dispatch_async'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function _cfstream_shared_signalEventSync: error: undefined reference to 'dispatch_release'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function _CFStreamSetDispatchQueue: error: undefined reference to 'dispatch_retain'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function ___legacyStreamRunLoop_block_invoke: error: undefined reference to 'dispatch_semaphore_create'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function ___legacyStreamRunLoop_block_invoke: error: undefined reference to 'dispatch_semaphore_wait'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFStream.c.o):CoreFoundation/Stream.subproj/CFStream.c:function _legacyStreamRunLoop_workThread: error: undefined reference to 'dispatch_semaphore_signal'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionCreateErrorDescription: error: undefined reference to 'curl_easy_strerror'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionEasyHandleInit: error: undefined reference to 'curl_easy_init'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionEasyHandleDeinit: error: undefined reference to 'curl_easy_cleanup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionEasyHandleSetPauseState: error: undefined reference to 'curl_easy_pause'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionMultiHandleInit: error: undefined reference to 'curl_multi_init'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionMultiHandleDeinit: error: undefined reference to 'curl_multi_cleanup'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionMultiHandleAddHandle: error: undefined reference to 'curl_multi_add_handle'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionMultiHandleRemoveHandle: error: undefined reference to 'curl_multi_remove_handle'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionMultiHandleAssign: error: undefined reference to 'curl_multi_assign'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionMultiHandleAction: error: undefined reference to 'curl_multi_socket_action'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionMultiHandleInfoRead: error: undefined reference to 'curl_multi_info_read'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_easy_setopt_ptr: error: undefined reference to 'curl_easy_setopt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_easy_setopt_int: error: undefined reference to 'curl_easy_setopt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_easy_setopt_long: error: undefined reference to 'curl_easy_setopt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_easy_setopt_int64: error: undefined reference to 'curl_easy_setopt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_easy_getinfo_long: error: undefined reference to 'curl_easy_getinfo'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_easy_getinfo_double: error: undefined reference to 'curl_easy_getinfo'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_easy_getinfo_charp: error: undefined reference to 'curl_easy_getinfo'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_multi_setopt_ptr: error: undefined reference to 'curl_multi_setopt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_multi_setopt_l: error: undefined reference to 'curl_multi_setopt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_multi_setopt_sf: error: undefined reference to 'curl_multi_setopt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSession_multi_setopt_tf: error: undefined reference to 'curl_multi_setopt'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionInit: error: undefined reference to 'curl_global_init'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionCurlVersionString: error: undefined reference to 'curl_version'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionCurlVersionInfo: error: undefined reference to 'curl_version_info'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionSListAppend: error: undefined reference to 'curl_slist_append'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFURLSessionInterface.c.o):CoreFoundation/URL.subproj/CFURLSessionInterface.c:function CFURLSessionSListFreeAll: error: undefined reference to 'curl_slist_free_all'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(HTTPCookieStorage.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/HTTPCookieStorage.swift.o:function _T010Foundation17HTTPCookieStorageC9setCookieyAA0B0CFyycfU_: error: undefined reference to '_T08Dispatch25_dispatchPreconditionTestSbAA0A9PredicateOF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(HTTPCookieStorage.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/HTTPCookieStorage.swift.o:function _T010Foundation17HTTPCookieStorageC9setCookieyAA0B0CFyycfU_: error: undefined reference to '_T08Dispatch25_dispatchPreconditionTestSbAA0A9PredicateOF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(HTTPCookieStorage.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/HTTPCookieStorage.swift.o:function _T010Foundation17HTTPCookieStorageC9setCookieyAA0B0CFyycfU_: error: undefined reference to '_T08Dispatch25_dispatchPreconditionTestSbAA0A9PredicateOF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(HTTPCookieStorage.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/HTTPCookieStorage.swift.o:function _T010Foundation17HTTPCookieStorageC9setCookieyAA0B0CFyycfU_: error: undefined reference to '_T08Dispatch25_dispatchPreconditionTestSbAA0A9PredicateOF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(NSIndexSet.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/NSIndexSet.swift.o:function _T010Foundation10NSIndexSetC21_enumerateWithOptionsSiSgAA013NSEnumerationF0V_AA8_NSRangeV5rangexm9paramTypeq_m06returnK0q_x_SpyAA8ObjCBoolVGtc5blocktr0_lFTf4nxnngn_nAI_ytTg5: error: undefined reference to '_T08Dispatch0A5QueueC17concurrentPerformySi10iterations_ySic7executetFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(NSIndexSet.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/NSIndexSet.swift.o:function _T010Foundation10NSIndexSetC21_enumerateWithOptionsSiSgAA013NSEnumerationF0V_AA8_NSRangeV5rangexm9paramTypeq_m06returnK0q_x_SpyAA8ObjCBoolVGtc5blocktr0_lFTf4nxnngn_nSi_ytTg5: error: undefined reference to '_T08Dispatch0A5QueueC17concurrentPerformySi10iterations_ySic7executetFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(NSIndexSet.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/NSIndexSet.swift.o:function _T010Foundation10NSIndexSetC21_enumerateWithOptionsSiSgAA013NSEnumerationF0V_AA8_NSRangeV5rangexm9paramTypeq_m06returnK0q_x_SpyAA8ObjCBoolVGtc5blocktr0_lFTf4nxnngn_nSi_SbTg5: error: undefined reference to '_T08Dispatch0A5QueueC17concurrentPerformySi10iterations_ySic7executetFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Progress.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Progress.swift.o:function _T010Foundation8ProgressC19cancellationHandleryycSgvW: error: undefined reference to '_T08Dispatch0A5QueueC6globalAcA0A3QoSV0D6SClassO3qos_tFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Progress.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Progress.swift.o:function _T010Foundation8ProgressC19cancellationHandleryycSgvs: error: undefined reference to '_T08Dispatch0A5QueueC6globalAcA0A3QoSV0D6SClassO3qos_tFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(Progress.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/Progress.swift.o:function _T010Foundation8ProgressC14pausingHandleryycSgvW: error: undefined reference to '_T08Dispatch0A5QueueC6globalAcA0A3QoSV0D6SClassO3qos_tFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation18createDispatchData0C00cD0VAA0D0VF: error: undefined reference to '_T08Dispatch0A4DataVACs22UnsafeRawBufferPointerV5bytes_tcfC'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation9splitData8Dispatch0dC0V_AEtAE08dispatchC0_Si10atPositiontF: error: undefined reference to '_T08Dispatch0A4DataV7subdataACs14CountableRangeVySiG2in_tF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation9splitData8Dispatch0dC0V_AEtAE08dispatchC0_Si10atPositiontF: error: undefined reference to '_T08Dispatch0A4DataV5countSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation9splitData8Dispatch0dC0V_AEtAE08dispatchC0_Si10atPositiontF: error: undefined reference to '_T08Dispatch0A4DataV7subdataACs14CountableRangeVySiG2in_tF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyDataSourceC12getNextChunkAA01_bdcG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV7subdataACs14CountableRangeVySiG2in_tF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyDataSourceC12getNextChunkAA01_bdcG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV7subdataACs14CountableRangeVySiG2in_tF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyDataSourceC12getNextChunkAA01_bdcG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV5emptyACvau'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC13readNextChunk33_2F2780F3EADACBD8B884A53D827DE265LLyyF: error: undefined reference to '_T08Dispatch0A2IOC4readySi6offset_Si6lengthAA0A5QueueC5queueySb_AA0A4DataVSgs5Int32Vtc9ioHandlertF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC12getNextChunkAA01_bd4DataG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV10startIndexSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC12getNextChunkAA01_bd4DataG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV8endIndexSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC12getNextChunkAA01_bd4DataG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV10startIndexSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC12getNextChunkAA01_bd4DataG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV8endIndexSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC12getNextChunkAA01_bd4DataG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV10startIndexSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC12getNextChunkAA01_bd4DataG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV8endIndexSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC12getNextChunkAA01_bd4DataG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV10startIndexSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC12getNextChunkAA01_bd4DataG0OSi10withLength_tF: error: undefined reference to '_T08Dispatch0A4DataV8endIndexSivg'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation16copyDispatchDatay0C00cD0V_SryxG10infoBuffertlFTf4gn_n: error: undefined reference to '_T08Dispatch0A4DataV9copyBytesSiSryxG2to_s14CountableRangeVySiGSg4fromtlF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceCAcA3URLV04fileE0_8Dispatch0G5QueueC04workH0yyc20dataAvailableHandlertcfcTf4gggn_n: error: undefined reference to '_T08Dispatch0A2IOCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceCAcA3URLV04fileE0_8Dispatch0G5QueueC04workH0yyc20dataAvailableHandlertcfcTf4gggn_n: error: undefined reference to '_T08Dispatch0A2IOCACSgAC10StreamTypeO4type_SPys4Int8VG4paths5Int32V5oflags6UInt32V4modeAA0A5QueueC5queueyAMc14cleanupHandlertcfC'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceCAcA3URLV04fileE0_8Dispatch0G5QueueC04workH0yyc20dataAvailableHandlertcfcTf4gggn_n: error: undefined reference to '_T08Dispatch0A2IOCN'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceCAcA3URLV04fileE0_8Dispatch0G5QueueC04workH0yyc20dataAvailableHandlertcfcTf4gggn_n: error: undefined reference to '_T08Dispatch0A2IOC8setLimitySi9highWater_tF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation20_BodySourceDataChunkOwug: error: undefined reference to '_T08Dispatch0A4DataVN'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o)(.text+0x1374): error: undefined reference to '_T08Dispatch0A2IOCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC6append33_2F2780F3EADACBD8B884A53D827DE265LLy8Dispatch0M4DataV4data_Sb05endOfC0tFTf4gnn_n: error: undefined reference to '_T08Dispatch0A4DataV6appendyACF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(BodySource.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/BodySource.swift.o:function _T010Foundation15_BodyFileSourceC13readNextChunk33_2F2780F3EADACBD8B884A53D827DE265LLyyFySb_8Dispatch0O4DataVSgs5Int32VtcfU_Tf4ngnn_n: error: undefined reference to '_T08Dispatch0A4DataV6appendyACF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCfd: error: undefined reference to '_T08Dispatch0A6SourceCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCfd: error: undefined reference to '_T08Dispatch0A6SourceCAA0aB8ProtocolAAWP'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCfd: error: undefined reference to '_T08Dispatch0A14SourceProtocolPAAE6cancelyyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCfD: error: undefined reference to '_T08Dispatch0A6SourceCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCfD: error: undefined reference to '_T08Dispatch0A6SourceCAA0aB8ProtocolAAWP'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCfD: error: undefined reference to '_T08Dispatch0A14SourceProtocolPAAE6cancelyyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_A2ISvSgAJtcfU_Tf4dnnnn_n: error: undefined reference to '_T08Dispatch0A8WorkItemCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_A2ISvSgAJtcfU_Tf4dnnnn_n: error: undefined reference to '_T08Dispatch0A8WorkItemCAcA0A3QoSV3qos_AA0abC5FlagsV5flagsyyXB5blocktcfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_A2ISvSgAJtcfU_Tf4dnnnn_n: error: undefined reference to '_T08Dispatch0A6SourceCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_A2ISvSgAJtcfU_Tf4dnnnn_n: error: undefined reference to '_T08Dispatch0A6SourceC08makeReadB0AA0abD0_ps5Int32V14fileDescriptor_AA0A5QueueCSg5queuetFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_A2ISvSgAJtcfU_Tf4dnnnn_n: error: undefined reference to '_T08Dispatch0A10SourceReadMp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_A2ISvSgAJtcfU_Tf4dnnnn_n: error: undefined reference to '_T08Dispatch0A6SourceCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_A2ISvSgAJtcfU_Tf4dnnnn_n: error: undefined reference to '_T08Dispatch0A6SourceC09makeWriteB0AA0abD0_ps5Int32V14fileDescriptor_AA0A5QueueCSg5queuetFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_A2ISvSgAJtcfU_Tf4dnnnn_n: error: undefined reference to '_T08Dispatch0A11SourceWriteMp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6SourceC10TimerFlagsVAESu8rawValue_tcfC'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6SourceC10TimerFlagsVAESu8rawValue_tcfC'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6SourceC10TimerFlagsVAESu8rawValue_tcfC'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6SourceC10TimerFlagsVAESu8rawValue_tcfC'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6SourceC09makeTimerB0AA0abD0_pAC0D5FlagsV5flags_AA0A5QueueCSg5queuetFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A11SourceTimerMp'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A4TimeV3nowACyFZ'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch1poiAA0A4TimeVAD_AA0aB8IntervalOtF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6SourceCAA0aB5TimerAAWP'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A11SourceTimerPAAE8scheduleyAA0A4TimeV8deadline_AA0aE8IntervalO9repeatingAI6leewaytF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6SourceCAA0aB8ProtocolAAWP'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A14SourceProtocolPAAE15setEventHandleryAA0A8WorkItemC7handler_tF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6SourceCN'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation14_TimeoutSourceCAC8Dispatch0D5QueueC5queue_Si12millisecondsAD0D8WorkItemC7handlertcfcTf4gngn_n: error: undefined reference to '_T08Dispatch0A6ObjectC6resumeyyF'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_SiSvSgtcfU0_Tf4dnn_n: error: undefined reference to '_T08Dispatch0A8WorkItemCMa'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(MultiHandle.swift.o):../build/buildbot_linux/foundation-linux-x86_64/Foundation/Foundation/URLSession/libcurl/MultiHandle.swift.o:function _T010Foundation10URLSessionC12_MultiHandleC14setupCallbacks33_0D88FAB2A36EC056571C12A88F9AC924LLyyFs5Int32VSv_SiSvSgtcfU0_Tf4dnn_n: error: undefined reference to '_T08Dispatch0A8WorkItemCAcA0A3QoSV3qos_AA0abC5FlagsV5flagsyyXB5blocktcfc'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CoreFoundation/Base.subproj/CFSortFunctions.c:function CFSortIndexes: error: undefined reference to '_dispatch_queue_attr_concurrent'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CoreFoundation/Base.subproj/CFSortFunctions.c:function CFSortIndexes: error: undefined reference to 'dispatch_queue_create'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CoreFoundation/Base.subproj/CFSortFunctions.c:function CFSortIndexes: error: undefined reference to 'dispatch_apply'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CoreFoundation/Base.subproj/CFSortFunctions.c:function __CFSortIndexesN: error: undefined reference to 'dispatch_apply'
    /root/.swiftenv/versions/4.1.3/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CoreFoundation/Base.subproj/CFSortFunctions.c:function __CFSortIndexesN: error: undefined reference to 'dispatch_apply'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    <unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
    error: terminated(1): /root/.swiftenv/versions/4.1.3/usr/bin/swift-build-tool -f /bitrise/src/Mint/.build/release.yaml main output:
        
    Fetching https://github.com/apple/swift-package-manager.git
    Fetching https://github.com/onevcat/Rainbow.git
    Fetching https://github.com/jakeheis/SwiftCLI
    Fetching https://github.com/kylef/PathKit.git
    Fetching https://github.com/kylef/Spectre.git
    Cloning https://github.com/apple/swift-package-manager.git
    Resolving https://github.com/apple/swift-package-manager.git at 0.2.0
    Cloning https://github.com/onevcat/Rainbow.git
    Resolving https://github.com/onevcat/Rainbow.git at 3.1.4
    Cloning https://github.com/kylef/PathKit.git
    Resolving https://github.com/kylef/PathKit.git at 0.9.1
    Cloning https://github.com/kylef/Spectre.git
    Resolving https://github.com/kylef/Spectre.git at 0.8.0
    Cloning https://github.com/jakeheis/SwiftCLI
    Resolving https://github.com/jakeheis/SwiftCLI at 5.1.2
    Makefile:18: recipe for target 'build' failed
    make: *** [build] Error 1
    

    Any idea how I can fix the issue?

    opened by Jeehut 12
  • Permissions issue with mint installation with mint

    Permissions issue with mint installation with mint

    % swift run mint install yonaskolb/mint
    🌱 Finding latest version of mint
    🌱 Cloning mint 0.14.2
    🌱 Resolving package
    🌱 Building package
    Error: You don’t have permission to save the file “0.14.2” in the folder “build”. 
    

    i solved by installing with: % sudo swift run mint install yonaskolb/mint

    opened by jonasman 11
  • Add which command for printing full path to binary

    Add which command for printing full path to binary

    Example usage:

    $ mint which Carthage/[email protected] carthage
    /usr/local/lib/mint/packages/github.com_Carthage_Carthage/build/0.29.0/carthage
    
    $ mint which LinusU/RasterizeXCAssets 
    /usr/local/lib/mint/packages/github.com_LinusU_RasterizeXCAssets/build/1.0.0-alpha.2/RasterizeXCAssets
    
    $ mint which carthage                         
    /usr/local/lib/mint/packages/github.com_Carthage_Carthage/build/0.29.0/carthage
    
    $ mint which LinusU/NotFound        
    🌱  Git repo not found at "https://github.com/LinusU/NotFound.git"
    
    opened by LinusU 11
  • Add mint file

    Add mint file

    A mint specification file that would list a bunch of swift command line tools with version. You could run mint install on it and it would install all those versions. Then you could just run mint run tool and it would look up which version should be run from the file

    feature 
    opened by yonaskolb 11
  • Add support for SPM resource bundles

    Add support for SPM resource bundles

    Added support for resouce in SPM version 5.3 or later. #223 SPM outputs a file named [package name]_[target name].bundle (or *.resources on linux) when resources is specified for a target in Package.swift. If resources is specified for multiple targets, multiple bundles will be output, so I had to figure out the dependency graph and copy only what I need.
    For example, SwiftGen outputs the following two bundles in the build, but mint should only copy one of them. (The other one is for testing, so it is not needed).

    • SwiftGen_SwiftGenCLI.bundle
    • SwiftGen_TestUtils.bundle

    We also had to take into consider the case where resources are included in external packages that we depend on, so I separated the commits.

    I used the following repository to test this.

    About Unit Tests

    I haven't written any unit tests because I didn't think I should use my personal repository for testing. If you can prepare a sample repository of packages that contain some resources, we can write unit tests.

    opened by tid-kijyun 10
  • Error when I try to install mint with brew

    Error when I try to install mint with brew

    Hello,

    When I try to install mint via brew, I have this error

    swift build --disable-sandbox -c release -Xswiftc -static-stdlib error: failed to clone; Cloning into bare repository '/private/tmp/mint-20171003-62946-56b4dl/Mint-0.4.0/.build/repositories/PathKit.git--1865447967743163058'... fatal: unable to access 'https://github.com/kylef/PathKit.git/': Could not resolve host: github.com error: product dependency 'ShellOut' not found error: product dependency 'Rainbow' not found error: product dependency 'PathKit' not found error: product dependency 'Rainbow' not found error: product dependency 'Guaka' not found Fetching https://github.com/kylef/PathKit.git Fetching https://github.com/JohnSundell/ShellOut.git Fetching https://github.com/onevcat/Rainbow.git Fetching https://github.com/nsomar/Guaka.git Fetching https://github.com/kylef/Spectre.git Fetching https://github.com/oarrabi/StringScanner make: *** [build] Error 1

    If reporting this issue please do so to (not Homebrew/brew or Homebrew/core): yonaskolb/mint

    /usr/local/Homebrew/Library/Homebrew/utils/github.rb:226:in raise_api_error': curl failed! (GitHub::Error) curl: (22) The requested URL returned error: 422 Unprocessable Entity curl: (3) <url> malformed from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:184:inopen' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:284:in search' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:231:insearch_issues' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:244:in issues_for_formula' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:369:infetch_issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:365:in issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:419:indump' from /usr/local/Homebrew/Library/Homebrew/brew.rb:133:in rescue in <main>' from /usr/local/Homebrew/Library/Homebrew/brew.rb:26:in

    '

    opened by amine2233 9
  • Make folder to mint configurable

    Make folder to mint configurable

    It would be great to have an environment variable to define, where the mint packages are stored (defaulting to "/usr/local/lib/mint/packages/").

    This way, one could cache them easier in certain environments (e.g. build servers).

    enhancement 
    opened by Lutzifer 8
  • Required to type command twice when attempting to execute a subcommand

    Required to type command twice when attempting to execute a subcommand

    Problem

    Whenever I want to run the subcommand of a given executable, I'm required to type the name of the command again.

    I'm fairly sure this is because the first one is just referencing the repo and running the default command. I think this is by design, but it feels unintuitive. I actually thought SwiftFormat was broken for a while since mint run swiftformat . kept failing.

    System Information

    macOS Version: 10.14.5 Shell: zsh Mint Version: 0.12.0

    Examples

    Examples are using SwiftLint.

    mint run swiftlint

    🌱  Using Realm/SwiftLint 0.34.0 from Mintfile.
    🌱  SwiftLint 0.34.0 already installed
    🌱  Running swiftlint 0.34.0...
    Loading configuration from '.swiftlint.yml'
    Linting Swift files at paths
    Linting 'LinuxMain.swift' (1/57)
    <more files>
    Done linting! Found 10 violations, 0 serious in 57 files.
    

    mint run swiftlint autocorrect

    🌱  Using Realm/SwiftLint 0.34.0 from Mintfile.
    🌱  SwiftLint 0.34.0 already installed
    🌱  Couldn't find executable "autocorrect"
    

    mint run swiftlint swiftlint autocorrect

    🌱  Using Realm/SwiftLint 0.34.0 from Mintfile.
    🌱  SwiftLint 0.34.0 already installed
    🌱  Running swiftlint 0.34.0...
    Loading configuration from '.swiftlint.yml'
    Correcting Swift files at paths
    Correcting 'LinuxMain.swift' (1/57)
    <more files>
    Done correcting 57 files!
    
    opened by bdrelling 7
  • Mint shouldn't require the parameter command quoted

    Mint shouldn't require the parameter command quoted

    Current behavior

    Mint $ ./.build/x86_64-apple-macosx10.10/debug/mint run toshi0383/cmdshelf cmdshelf run hello.sh
    🌱  The operation couldn’t be completed. (Mint.CommandError error 2.)
    Mint $ ./.build/x86_64-apple-macosx10.10/debug/mint run toshi0383/cmdshelf "cmdshelf run hello.sh"
    🌱  Finding latest version of cmdshelf
    🌱  Using cmdshelf "0.8.0"
    🌱  cmdshelf "0.8.0" already installed
    🌱  Running cmdshelf "0.8.0"...
    hello
    

    Expected Behavior

    Mint $ ./.build/x86_64-apple-macosx10.10/debug/mint run toshi0383/cmdshelf cmdshelf run hello.sh
    🌱  Finding latest version of cmdshelf
    🌱  Using cmdshelf "0.8.0"
    🌱  cmdshelf "0.8.0" already installed
    🌱  Running cmdshelf "0.8.0"...
    hello
    Mint $ ./.build/x86_64-apple-macosx10.10/debug/mint run toshi0383/cmdshelf "cmdshelf run hello.sh"
    🌱  Finding latest version of cmdshelf
    🌱  Using cmdshelf "0.8.0"
    🌱  cmdshelf "0.8.0" already installed
    🌱  Running cmdshelf "0.8.0"...
    hello
    

    Why

    • Because it's shorter.
    • So you can create an alias on that command like below, and pass arguments to it.
    $ alias sourcery-0.10.0='mint run krzysztofzablocki/[email protected] sourcery' # not actually works I guess, but just for example
    $ sourcery-0.10.0 --help
    
    opened by toshi0383 7
  • Allow custom scripts in the Mintfile

    Allow custom scripts in the Mintfile

    Feature Request:

    It would be nice to be able to add run scripts to the Mintfile much like how npm allows custom script definitions in the packages.json. At the moment I supplement with a makefile, but it would be nice to remove another tool and just use Mint for it.

    e.g.

    Mintfile

    # Help to generate the xcodeproj file
    # https://github.com/yonaskolb/XcodeGen
    yonaskolb/[email protected]
    
    setup:
      mint bootstrap
      mint run xcodegen
    
    xcodegen:
      mint run [email protected] --spec Shared/project.yml	
      mint run [email protected] --spec Database/project.yml
      mint run [email protected] --spec App/project.yml
    
    

    run using

    mint run setup
    
    opened by dcarmo-tribalscale 0
  • Swift Package plugin: MintKit compilation errors

    Swift Package plugin: MintKit compilation errors

    I'm writing a Swift Package plugin that depends on MintKit, but my project fails to build due to compilation errors from Mint.swift.

    Xcode: Version 13.4.1 (13F100) Swift tools: 5.6

    Package.swift

    // swift-tools-version: 5.6
    
    import PackageDescription
    
    let package = Package(
        name: "MyAppPackage",
        platforms: [
            .iOS(.v13),
        ],
        products: [
            .library(name: "MyAppPackage", targets: ["MyAppPackage"]),
            .plugin(name: "MyPlugin", targets: ["MyPlugin"])
        ],
        dependencies: [
            .package(url: "https://github.com/yonaskolb/Mint.git", from: "0.17.1"),
            // other dependencies omitted
        ],
        targets: [
            .target(
                name: "MyAppPackage",
                dependencies: [
                    // omitted
                ],
                plugins: [.plugin(name: "MyPlugin")]
            ),
            .plugin(
                name: "MyPlugin",
                capability: .buildTool(),
                dependencies: [.product(name: "MintKit", package: "Mint")]
            ),
        ])
    

    Error logs:

    CompileSwift normal arm64 $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift (in target 'MintKit' from project 'Mint')
        cd $DERIVED_DATA/SourcePackages/checkouts/Mint
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c $DERIVED_DATA/Index/DataStore -index-system-modules
    
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:163:37: error: generic parameter 'Success' could not be inferred
                    let tagOutput = try Task.capture(bash: "git ls-remote --tags --refs \(package.gitPath)")
                                        ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:163:37: error: generic parameter 'Failure' could not be inferred
                    let tagOutput = try Task.capture(bash: "git ls-remote --tags --refs \(package.gitPath)")
                                        ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:163:37: note: explicitly specify the generic arguments to fix this issue
                    let tagOutput = try Task.capture(bash: "git ls-remote --tags --refs \(package.gitPath)")
                                        ^
                                            <<#Success: Sendable#>, <#Failure: Error#>>
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:163:42: error: type 'Task<Success, Failure>' has no member 'capture'
                    let tagOutput = try Task.capture(bash: "git ls-remote --tags --refs \(package.gitPath)")
                                        ~~~~ ^~~~~~~
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:171:67: error: type of expression is ambiguous without more context
                        if let latestVersion = versions.keys.sorted().last, let tag = versions[latestVersion] {
                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:171:91: error: type of expression is ambiguous without more context
                        if let latestVersion = versions.keys.sorted().last, let tag = versions[latestVersion] {
                                                                                      ~~~~~~~~^~~~~~~~~~~~~~~
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:216:17: error: generic parameter 'Success' could not be inferred
                try Task.execvp(packagePath.executablePath.string, arguments: arguments, env: env)
                    ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:216:17: error: generic parameter 'Failure' could not be inferred
                try Task.execvp(packagePath.executablePath.string, arguments: arguments, env: env)
                    ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:216:17: note: explicitly specify the generic arguments to fix this issue
                try Task.execvp(packagePath.executablePath.string, arguments: arguments, env: env)
                    ^
                        <<#Success: Sendable#>, <#Failure: Error#>>
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:216:22: error: type 'Task<Success, Failure>' has no member 'execvp'
                try Task.execvp(packagePath.executablePath.string, arguments: arguments, env: env)
                    ~~~~ ^~~~~~
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:218:27: error: no exact matches in call to initializer 
                let runTask = Task(executable: packagePath.executablePath.string, arguments: arguments)
                              ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:218:27: note: found candidate with type '(Optional<TaskPriority>, __owned @escaping @Sendable () async -> _) -> Task<_, Never>'
                let runTask = Task(executable: packagePath.executablePath.string, arguments: arguments)
                              ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:218:27: note: found candidate with type '(Optional<TaskPriority>, __owned @escaping @Sendable () async throws -> _) -> Task<_, Error>'
                let runTask = Task(executable: packagePath.executablePath.string, arguments: arguments)
                              ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:218:27: error: generic parameter 'Success' could not be inferred
                let runTask = Task(executable: packagePath.executablePath.string, arguments: arguments)
                              ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:218:27: note: explicitly specify the generic arguments to fix this issue
                let runTask = Task(executable: packagePath.executablePath.string, arguments: arguments)
                              ^
                                  <<#Success: Sendable#>, Never>
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:363:17: error: generic parameter 'Success' could not be inferred
                try Task.run("cp", executablePath.string, destinationPackagePath.executablePath.string)
                    ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:363:17: error: generic parameter 'Failure' could not be inferred
                try Task.run("cp", executablePath.string, destinationPackagePath.executablePath.string)
                    ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:363:17: note: explicitly specify the generic arguments to fix this issue
                try Task.run("cp", executablePath.string, destinationPackagePath.executablePath.string)
                    ^
                        <<#Success: Sendable#>, <#Failure: Error#>>
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:363:22: error: type 'Task<Success, Failure>' has no member 'run'
                try Task.run("cp", executablePath.string, destinationPackagePath.executablePath.string)
                    ~~~~ ^~~
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:378:25: error: generic parameter 'Success' could not be inferred
                        try Task.run(bash: "cp -R \"\(resourcePath)\" \"\(dest)\"")
                            ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:378:25: error: generic parameter 'Failure' could not be inferred
                        try Task.run(bash: "cp -R \"\(resourcePath)\" \"\(dest)\"")
                            ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:378:25: note: explicitly specify the generic arguments to fix this issue
                        try Task.run(bash: "cp -R \"\(resourcePath)\" \"\(dest)\"")
                            ^
                                <<#Success: Sendable#>, <#Failure: Error#>>
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:378:30: error: type 'Task<Success, Failure>' has no member 'run'
                        try Task.run(bash: "cp -R \"\(resourcePath)\" \"\(dest)\"")
                            ~~~~ ^~~
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:414:21: error: generic parameter 'Success' could not be inferred
                    try Task.run(bash: command, directory: directory.string)
                        ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:414:21: error: generic parameter 'Failure' could not be inferred
                    try Task.run(bash: command, directory: directory.string)
                        ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:414:21: note: explicitly specify the generic arguments to fix this issue
                    try Task.run(bash: command, directory: directory.string)
                        ^
                            <<#Success: Sendable#>, <#Failure: Error#>>
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:414:26: error: type 'Task<Success, Failure>' has no member 'run'
                    try Task.run(bash: command, directory: directory.string)
                        ~~~~ ^~~
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:416:25: error: generic parameter 'Success' could not be inferred
                    _ = try Task.capture(bash: command, directory: directory.string)
                            ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:416:25: error: generic parameter 'Failure' could not be inferred
                    _ = try Task.capture(bash: command, directory: directory.string)
                            ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:416:25: note: explicitly specify the generic arguments to fix this issue
                    _ = try Task.capture(bash: command, directory: directory.string)
                            ^
                                <<#Success: Sendable#>, <#Failure: Error#>>
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:416:30: error: type 'Task<Success, Failure>' has no member 'capture'
                    _ = try Task.capture(bash: command, directory: directory.string)
                            ~~~~ ^~~~~~~
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:459:17: error: generic parameter 'Success' could not be inferred
                try Task.run(bash: "ln -s \"\(packagePath.executablePath.string)\" \"\(installPath.string)\"")
                    ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:459:17: error: generic parameter 'Failure' could not be inferred
                try Task.run(bash: "ln -s \"\(packagePath.executablePath.string)\" \"\(installPath.string)\"")
                    ^
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:459:17: note: explicitly specify the generic arguments to fix this issue
                try Task.run(bash: "ln -s \"\(packagePath.executablePath.string)\" \"\(installPath.string)\"")
                    ^
                        <<#Success: Sendable#>, <#Failure: Error#>>
    $DERIVED_DATA/SourcePackages/checkouts/Mint/Sources/MintKit/Mint.swift:459:22: error: type 'Task<Success, Failure>' has no member 'run'
                try Task.run(bash: "ln -s \"\(packagePath.executablePath.string)\" \"\(installPath.string)\"")
                    ~~~~ ^~~
    
    opened by blake-matson-irl 2
  • To support local-packages

    To support local-packages

    ref: https://developer.apple.com/documentation/xcode/organizing-your-code-with-local-packages

    For example as below, can I just use Mintfile to support local-packages ?

    swiftyfinch/[email protected]
    ./Module/LocalPackage/MyPackage
    

    Thanks.

    opened by ghost 1
  • [BUG] Version comparison fails when it should actually succeed

    [BUG] Version comparison fails when it should actually succeed

    % mint version
    Version: 0.17.1
    
    % mint install swiftyfinch/rugby@main
    🌱 Cloning rugby main
    🌱 Resolving package
    error: Dependencies could not be resolved because no versions of 'xcbeautify' match the requirement 0.13.0..<1.0.0 and root depends on 'xcbeautify' 0.13.0..<1.0.0.
    🌱 Encountered error during "swift package resolve". Use --verbose to see full output
    🌱  Failed to resolve rugby main with SPM
    
    % mint install tuist/xcbeautify
    🌱 Finding latest version of xcbeautify
    🌱 Cloning xcbeautify 0.13.0
    🌱 Resolving package
    error: Dependencies could not be resolved because no versions of 'xmlcoder' match the requirement 0.13.1..<1.0.0 and root depends on 'xmlcoder' 0.13.1..<1.0.0.
    🌱 Encountered error during "swift package resolve". Use --verbose to see full output
    🌱  Failed to resolve xcbeautify 0.13.0 with SPM
    

    The version of xcbeautify shown here is 0.13.0, which should satisfy rugby's dependency requirement of 'xcbeautify' 0.13.0..<1.0.0, but it unexpectedly does not.

    macOS Monterey version 12.4 (21F79)

    opened by marlonrichert 0
Releases(0.17.5)
  • 0.17.5(Dec 22, 2022)

  • 0.17.4(Dec 1, 2022)

  • 0.17.3(Nov 20, 2022)

  • 0.17.2(Sep 29, 2022)

  • 0.17.0(Sep 23, 2021)

    Fixed

    • Fixed package installation on newer versions of macOS and M1 machines #216 @yonaskolb
    • Fixed building in Xcode 13 #218 #219 @Armenm

    Changed

    • The default package install path ($MINT_PATH) has changed from /usr/local/lib/mint to ~/.mint, and the global link path ($MINT_LINK_PATH) has changed from /usr/local/bin to ~/.mint/bin. This fixes installation issues on some systems, but in order to run globally installed packages without Mint you'll now need to add ~/.mint/bin to your $PATH. #216 @yonaskolb

    Commits

    Source code(tar.gz)
    Source code(zip)
    mint.zip(843.15 KB)
  • 0.16.0(Nov 18, 2020)

  • 0.15.0(Oct 23, 2020)

  • 0.14.2(Apr 13, 2020)

    Changed

    • Changeed list output to show what executables are installed if they differ from package name, and also disambiguate packages with the same name and different sources #170 @acecilia

    Fixed

    • Fixed the run to support when a package with the same name is installed from different origins (for example: yonaskolb/xcodegen and acecilia/xcodegen). #170 @acecilia
    • Fix the uninstall option: previously, the name for the symlink to remove was calculated using the package name passed from command line, which could be partial (for example simple instead of simplepackage), resulting on the symlink not being removed. #170 @acecilia
    • Fixed installing versions that reference a git sha #172 @yonaskolb
    • Added escaping of paths when linking. Avoids an error, when MINT_LINK_PATH contains spaces. @lutzifer

    Commits

    Source code(tar.gz)
    Source code(zip)
    mint.zip(449.00 KB)
  • 0.14.1(Feb 13, 2020)

  • 0.14.0(Feb 13, 2020)

    Added

    • Added --no-install option to mint run #160 @yonaskolb
    • Added mint which command for printing the path of an executable #162 @yonaskolb
    • The executable no longer needs to be provided in mint run when passing arguments if there is only a single executable in the package eg: mint run realm/SwiftLint autocorrect #159 @yonaskolb

    Changed

    • Moved output of some commands to --verbose and tweaked output #154 @yonaskolb

    Fixed

    • Fixed a bug that prevented the Mintfile from resolving a GitHub repository where the name contains a period #153 @liamnichols

    Internal

    • Updated to SwiftCLI 6.0 #157 @yonaskolb
    • Replace CircleCI with Github actions #158 @yonaskolb

    Commits

    Source code(tar.gz)
    Source code(zip)
    mint.zip(372.28 KB)
  • 0.13.0(Oct 14, 2019)

    Added

    • Added the --link (or -l) flag to the bootstrap option, to optionally link the packages of a Mintfile globally #137 @acecilia

    Fixed

    • Fixed list of executables not showing when asking for to disambiguate between them #149 @yonaskolb

    Internal

    • Updated dependencies and removed SwiftPM dependency

    Commits

    Source code(tar.gz)
    Source code(zip)
    mint.zip(353.79 KB)
  • 0.12.0(Mar 29, 2019)

  • 0.11.3(Dec 17, 2018)

  • 0.11.2(Aug 13, 2018)

  • 0.11.1(Aug 9, 2018)

  • 0.11.0(Aug 7, 2018)

    Added

    • Added Linux support #82 @yonaskolb
    • Executable names are now automatically read from Package.swift #95 @yonaskolb
    • All executables in Package.swift are now installed #95 @yonaskolb
    • If multiple executables exist and one is not provided in mint run it will ask you which one to run #95 @yonaskolb

    Changed

    • Breaking: changed MINT_INSTALL_PATH env to MINT_LINK_PATH #97 @yonaskolb
    • Breaking: changed --prevent-global to --no-link #97 @yonaskolb
    • Breaking: replaced mint update with mint install --force #96 @yonaskolb
    • --silent now applies to mint install in addition to mint run @yonaskolb

    Removed

    • Breaking: Swift packages without executable products are no longer supported
    • Breaking: Older style quoted command invocations are no longer supported. eg mint run realm/SwiftLint "swiftlint autocorrect"

    Fixed

    • Fixed Mintfile output not adhering to --silent #85 @yutailang0119
    • Fixed installing nested resourcs in Package.resources #93 @toshi0383

    Commits

    Source code(tar.gz)
    Source code(zip)
    mint.zip(3.40 MB)
  • 0.10.2(Jun 23, 2018)

  • 0.10.1(Jun 7, 2018)

  • 0.10.0(Jun 6, 2018)

    Added

    • Added mint bootstrap command for installing all the packages in your Mintfile #79 @yonaskolb
    • Added --mintfile argument for custom Mintfile path #79 @yonaskolb
    • Added stdin support to mint run #78 @yonaskolb

    Changed

    • Improved error output #78 @yonaskolb
    • Customizable standardOut and standardError in Mint #78 @yonaskolb
    • As global installs are now the default, replaced --global with --prevent-global flag @yonaskolb

    Fixed

    • Fixed output in run not being silenced when using a Mintfile #77 @yutailang0119
    • Removed dotfiles from mint list output @yonaskolb
    • Print errors to stderr #78 @yonaskolb

    Internal

    • Replaced ShellOut with SwiftCLI #78 @yonaskolb
    • Replaced SPM with SwiftCLI #78 @yonaskolb

    Commits

    Source code(tar.gz)
    Source code(zip)
    mint.zip(3.39 MB)
  • 0.9.1(Apr 13, 2018)

  • 0.9.0(Apr 12, 2018)

  • 0.8.0(Apr 3, 2018)

    • add ssh support #60 @Lutzifer
    • add --silent argument #64 @yonaskolb
    • build packages using the current version of macOS #61 @LinusU
    • bundle Swift with installations, so they don't fail with Swift updates #70 @yonaskolb
    • show globally installed packages with a * in mint list #56 @yutailang0119
    • Move homebrew formula from this repo to official homebrew repo (no more custom tap required) #63 yonaskolb
    • help output changes #55 @pixyzehn

    Commits

    Source code(tar.gz)
    Source code(zip)
    mint.zip(3.27 MB)
  • 0.7.1(Jan 6, 2018)

  • 0.7.0(Jan 6, 2018)

    • install and update now link the executable to usr/local/bin by default, for global usage. Disable this with --global:false #41 #44 #45
    • arguments to an executable no longer have to be surrounded in quotes. mint run yonaskolb/xcodegen xcodegen --spec myspec.yml
    • added streaming of run command output #36
    • added --verbose flag for cloning and building output #36
    • add MINT and RESOURCE_PATH envs #36
    • fixed ANSI color issue #36
    • replaced ShellOut with SwiftShell #36
    • added a whole bunch of tests

    Commits

    Source code(tar.gz)
    Source code(zip)
  • 0.6.1(Dec 1, 2017)

  • 0.6.0(Nov 30, 2017)

    • Fixed issues on case‐sensitive file systems #19 @SDGGiesbrecht
    • Fixed updating branches and packages without checked in Package.resolved files #24
    • Package repos are now checked out fresh on each install #24
    • If not passing a version, tags are now fetched remotely #24
    • Clones are now shallow #28
    • Added mint list command for listing all installed package versions #25
    • Added mint --version #27
    Source code(tar.gz)
    Source code(zip)
  • 0.5.0(Oct 13, 2017)

  • 0.4.1(Oct 3, 2017)

  • 0.4.0(Oct 1, 2017)

  • 0.3.0(Sep 27, 2017)

    • Made version optional (defaults to newest tagged release)
    • Made command name optional (defaults to trailing path in repo path)
    • Added update command
    Source code(tar.gz)
    Source code(zip)
Owner
Yonas Kolb
iOS and Swift dev
Yonas Kolb
Swift Modules, a swift module (or package) manager

Swift Modules The Swift Modules manager similar to the JavaScript world's npm and bower

Jan Kuča 60 Jun 3, 2021
The Package Manager for the Swift Programming Language

Swift Package Manager Project The Swift Package Manager is a tool for managing distribution of source code, aimed at making it easy to share your code

Apple 9.1k Dec 29, 2022
A dependency manager driven by SwiftPM that works for iOS/tvOS/watchOS/macOS projects.

Installation • Usage • Supporting Accio • Contributing • License ⚠️ Deprecation Notice ⚠️ With the release of Xcode 12 which includes Swift 5.3, we fe

Jamit Labs 647 Dec 25, 2022
A simple, decentralized dependency manager for Cocoa

Carthage Carthage is intended to be the simplest way to add frameworks to your Cocoa application. Carthage builds your dependencies and provides you w

Carthage 14.7k Jan 7, 2023
The Cocoa Dependency Manager.

CocoaPods: The Cocoa dependency manager CocoaPods manages dependencies for your Xcode projects. You specify the dependencies for your project in a sim

null 13.9k Jan 8, 2023
JKUI - a package included in this project that provides UIComponents

JKUI JKUI is a package included in this project that provides UIComponents. Befo

Juan Vasquez 2 Feb 11, 2022
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file

Swift Framework Template A template for new Swift Framework. What's in the template? Deployment Targets - iOS 9.0 / Mac OS X 10.10 / tvOS 9.0 / watchO

Rahul Katariya 529 Jun 27, 2022
Carthage cache for S3, Minio, Ceph, Google Storage, Artifactory and many others

Rome Rome is a tool that allows developers on Apple platforms to use: Amazon's S3 Minio Ceph other S3 compatible object stores or/and a local folder y

Tommaso Piazza 792 Jan 4, 2023
🚀 Create XCFrameworks with ease! A Command Line Tool to create XCFramework for multiple platforms at one shot! The better way to deal with XCFrameworks for iOS, Mac Catalyst, tvOS, macOS, and watchOS.

Surmagic ?? Create XCFramework with ease! A Command Line Tool to create XCFramework for multiple platforms at one shot! The better way to deal with XC

Muhammed Gurhan Yerlikaya 260 Dec 28, 2022
A curated list of awesome SwiftUI tutorials, libraries, videos and articles.

Awesome SwiftUI ??️ A curated list of awesome SwiftUI tutorials, libraries, sessions and articles. Contributing Found a SwiftUI library or snippet tha

Chinsyo 607 Jan 3, 2023
Go Flashcards for iOS and WatchOS - Official repository

Go Flashcards for iOS and WatchOS Go Flashcards for iOS and WatchOS is an application that allows users to create stacks of flashcards and review them

Roy 60 Dec 8, 2022
Gradle plugin for managing Swift by enhancing Carthage with Maven repository

Works presents Athena Preface As a mobile application engineer that develops iOS and Android applications, I found that in Android, dependencies can b

Yunarta Kartawahyudi 1 Nov 3, 2020
NFCMate - A NFC Companion built using Swift with CoreNFC Framework

NFCMate NFCMate NFCMate is a NFC app written in Swift for iOS devices. Moreover,

Navemics 7 Nov 21, 2022
Helping you find inner peace when comparing version numbers in Swift

Helping you find inner peace when comparing version numbers in Swift. Comparing with the current applications version couldn't be easier. // App.versi

Christoffer Winterkvist 207 Jun 29, 2022
A framework for writing terminal applications in Swift.

Ashen A framework for writing terminal applications in Swift. Based on The Elm Architecture. As a tutorial of Ashen, let's consider an application tha

Colin T.A. Gray 79 Dec 5, 2022
Swift Package Manager plugin which runs ActionBuilder to create a Github Actions workflow for a swift package.

ActionBuilderPlugin A Swift Package Manager command which builds a Github Actions workflow for the current package. By default the workflow file will

Elegant Chaos 4 Jul 20, 2022
A replacement for as which runs in constant time instead of O(n) when the conformance is not satisfiedA replacement for as which runs in constant time instead of O(n) when the conformance is not satisfied

ZConform A replacement for as? which runs in constant time instead of O(n) when the conformance is not satisfied. How it works ZConform does a one-tim

Emerge Tools 20 Aug 4, 2022
An executable that can be called from a Run Script Build Phase that makes comments such as // TODO: or // SERIOUS: appear in Xcode's Issue Navigator giving them project-wide visibility.

XcodeIssueGenerator An executable that can be called from a Run Script Build Phase that makes comments such as // TODO: or // SERIOUS: appear in Xcode

Wunderman Thompson Apps 143 Oct 11, 2022
TTSLanguage: Text To Speech commandline executable for macOS

TTSLanguage Text To Speech commandline executable for macOS. It can detect sentence language and read it using proper voice. example: $ TTSLanguage "H

Mateusz Szlosek 2 Jan 17, 2022
The Swift Package Index is the place to find Swift packages!

The Swift Package Index helps you make better decisions about the dependencies you use in your apps. The Swift Package Index is a search engine for pa

Swift Package Index 389 Dec 22, 2022