JPMartha's Pancake

This blog is the way to brush up my poor English.

Aggregate Errors about the Swift Package Manager 💣

Updated: 2016-03-27

This entry intends to aggregate errors about the Swift Package Manager. 💥

関西モバイルアプリ研究会(関モバ)#12 の抽選で外れてムシャクシャして書きました(嘘です)。Swift Package Manager のエラー集です。

f:id:JPMartha:20160318043515p:plain:w160

Premise(前提)

Unable to Invoke Subcommand

とりあえずビルド

$ swift build --help

error: unable to invoke subcommand: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)`

たしかにこの path に存在せんな 🔍

Verifying my $PATH

PATH 確認

$ env | grep PATH

PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Verifying the version of Swift

Swift のバージョン確認

$ swift --version

Apple Swift version 2.2 (swiftlang-703.0.17.4 clang-703.0.28)

Following the Guide on Swift.org

Swift.org の手順に従う

Swift.org - Getting Started

$ export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"
$ env | grep PATH

PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
$ swift --version

Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift 24a0c3de75)
Target: x86_64-apple-macosx10.9

Trying to Build without Package.swift

Package.swift なしでビルド

$ swift build

error: no Package.swift file found

Package.swift? んなもんないで 😏

Move Package.swift to the HOME Directory

ひとつ上の HOME ディレクトリに Package.swift を移動

HOMEDirectory
├── TryKit
│   ├── Sources
│   └── Tests
└── Package.swift

The role of -v is increase verbosity of informational output.

$ swift build -v

Himotoki is downloaded and built in the HOME directory.

HOME 上でそのままやってもうたで!🙄

The difference is the following:

通常との違い

1,3c1,3
< /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../Package.swift
< /usr/bin/git clone --recursive --depth 10 https://github.com/ikesyo/Himotoki.git /.../Packages/Himotoki
< Cloning into '/.../Packages/Himotoki'...
---
> /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Package.swift
> /usr/bin/git clone --recursive --depth 10 https://github.com/ikesyo/Himotoki.git /.../TryKit/Packages/Himotoki
> Cloning into '/.../TryKit/Packages/Himotoki'...
14c14
< Receiving objects: 100% (629/629), 111.83 KiB | 66.00 KiB/s, done.
---
> Receiving objects: 100% (629/629), 111.83 KiB | 0 bytes/s, done.
18c18
< /usr/bin/git -C /.../Packages/Himotoki fetch --tags origin
---
> /usr/bin/git -C /.../TryKit/Packages/Himotoki fetch --tags origin
22c22
< Receiving objects: 100% (1287/1287), 188.37 KiB | 65.00 KiB/s, done.
---
> Receiving objects: 100% (1287/1287), 188.37 KiB | 0 bytes/s, done.
50,54c50,54
< /usr/bin/git -C /.../Packages/Himotoki tag -l
< /usr/bin/git -C /.../Packages/Himotoki tag -l
< /usr/bin/git -C /.../Packages/Himotoki tag -l
< /usr/bin/git -C /.../Packages/Himotoki reset --hard 2.0.0-beta.2
< /usr/bin/git -C /.../Packages/Himotoki branch -m 2.0.0-beta.2
---
> /usr/bin/git -C /.../TryKit/Packages/Himotoki tag -l
> /usr/bin/git -C /.../TryKit/Packages/Himotoki tag -l
> /usr/bin/git -C /.../TryKit/Packages/Himotoki tag -l
> /usr/bin/git -C /.../TryKit/Packages/Himotoki reset --hard 2.0.0-beta.2
> /usr/bin/git -C /.../TryKit/Packages/Himotoki branch -m 2.0.0-beta.2
56,64c56,63
< /usr/bin/git -C /.../Packages/Himotoki config --get remote.origin.url
< /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../Packages/Himotoki/Package.swift
< /usr/bin/git -C /.../Packages/Himotoki rev-parse --abbrev-ref HEAD
< /usr/bin/git -C /.../Packages/Himotoki-2.0.0-beta.2 config --get remote.origin.url
< /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../Packages/Himotoki-2.0.0-beta.2/Package.swift
< /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swift-build-tool -f /.../.build/debug.yaml default -v
< /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc -module-name Himotoki -incremental -emit-dependencies -emit-module -emit-module-path /.../.build/debug/Himotoki.swiftmodule -output-file-map /.../.build/debug/Himotoki.build/output-file-map.json -parse-as-library -c /.../Packages/Himotoki-2.0.0-beta.2/Sources/Builder.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/Decodable.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/decode.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/DecodeError.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/Extractor.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/KeyPath.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/NSNumber.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/Operators.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/RawRepresentable.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/StandardLib.swift /.../Packages/Himotoki-2.0.0-beta.2/Sources/Transformer.swift -I /.../.build/debug -j8 -Onone -g -D SWIFT_PACKAGE -enable-testing -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
< /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc -module-name SourceTests -incremental -emit-dependencies -emit-module -emit-module-path /.../.build/debug/SourceTests.swiftmodule -output-file-map /.../.build/debug/SourceTests.build/output-file-map.json -parse-as-library -c /.../Source/SourceTests/SourceTests.swift -I /.../.build/debug -j8 -Onone -g -D SWIFT_PACKAGE -enable-testing -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
< /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc -module-name Source -incremental -emit-dependencies -emit-module -emit-module-path /.../.build/debug/Source.swiftmodule -output-file-map /.../.build/debug/Source.build/output-file-map.json -parse-as-library -c /.../Source/Source/Souce.swift -I /.../.build/debug -j8 -Onone -g -D SWIFT_PACKAGE -enable-testing -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
---
> /usr/bin/git -C /.../TryKit/Packages/Himotoki config --get remote.origin.url
> /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Packages/Himotoki/Package.swift
> /usr/bin/git -C /.../TryKit/Packages/Himotoki rev-parse --abbrev-ref HEAD
> /usr/bin/git -C /.../TryKit/Packages/Himotoki-2.0.0-beta.2 config --get remote.origin.url
> /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Package.swift
> /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swift-build-tool -f /.../TryKit/.build/debug.yaml default -v
> /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc -module-name Himotoki -incremental -emit-dependencies -emit-module -emit-module-path /.../TryKit/.build/debug/Himotoki.swiftmodule -output-file-map /.../TryKit/.build/debug/Himotoki.build/output-file-map.json -parse-as-library -c /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Builder.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Decodable.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/decode.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/DecodeError.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Extractor.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/KeyPath.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/NSNumber.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Operators.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/RawRepresentable.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/StandardLib.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Transformer.swift -I /.../TryKit/.build/debug -j8 -Onone -g -D SWIFT_PACKAGE -enable-testing -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
> /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc -module-name TryKit -incremental -emit-dependencies -emit-module -emit-module-path /.../TryKit/.build/debug/TryKit.swiftmodule -output-file-map /.../TryKit/.build/debug/TryKit.build/output-file-map.json -parse-as-library -c /.../TryKit/Sources/Try.swift -I /.../TryKit/.build/debug -j8 -Onone -g -D SWIFT_PACKAGE -enable-testing -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

Empty Package.swift

空の Package.swift

TryKit is built but Himotoki is not downloaded.

$ swift build -v

/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Package.swift
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swift-build-tool -f /.../TryKit/.build/debug.yaml default -v
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc -module-name TryKit -incremental -emit-dependencies -emit-module -emit-module-path /.../TryKit/.build/debug/TryKit.swiftmodule -output-file-map /.../TryKit/.build/debug/TryKit.build/output-file-map.json -parse-as-library -c /.../TryKit/Sources/Try.swift -I /.../TryKit/.build/debug -j8 -Onone -g -D SWIFT_PACKAGE -enable-testing -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
/.../TryKit/Sources/Try.swift:10:8: error: no such module 'Himotoki'
import Himotoki
       ^
<unknown>:0: error: build had 1 command failures
error: exit(1): /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swift-build-tool -f /.../TryKit/.build/debug.yaml default -v

TryKit はビルドされるけど Himotoki はダウンロードでけへんな 😲

No Dependencies in the Package.swift

Package.swift に依存関係なし

import PackageDescription

let package = Package(
    name: "TryKit"
)
$ swift build -v

The result is the same as above.

同じやて!😖

Package.swifto

o をつけたった

TryKit
├── Package.swifto
├── Sources
└── Tests
$ swift build -v

error: no Package.swift file found

そんなもんないって!😠

package.swift (Not Package.swift)

小文字で package.swift

$ swift build -v

/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Package.swift
error: InvalidLayout((extension in Transmute):PackageType.Package.InvalidLayoutType.InvalidLayout)

配置おかしいってば!😡

No File Extension .git

.git 拡張子なし

.Package(url: "https://github.com/ikesyo/Himotoki", ...

Himotoki is downloaded and built.

うまいこといってしもた!😱

Compare Himotoki with Himotoki.git

2c2
< [34m/usr/bin/git[0m clone --recursive --depth 10 https://github.com/ikesyo/Himotoki /.../TryKit/Packages/Himotoki
---
> [34m/usr/bin/git[0m clone --recursive --depth 10 https://github.com/ikesyo/Himotoki.git /.../TryKit/Packages/Himotoki

Invalid URL

無効な URL

.Package(url: "https://github.com/ikesyo/Himotok", ...
$ swift build -v

/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Package.swift
/usr/bin/git clone --recursive --depth 10 https://github.com/ikesyo/Himotok /.../TryKit/Packages/Himotok
Cloning into '/.../TryKit/Packages/Himotok'...
remote: Repository not found.
fatal: repository 'https://github.com/ikesyo/Himotok/' not found
error: Failed to clone https://github.com/ikesyo/Himotok to /.../TryKit/Packages/Himotok

クローンでけへんわ 😤

Digression

余談

Correct Operation

正しい操作

Move to the Root of My Project

プロジェクトフォルダへ移動

$ cd ./TryKit

Building(ビルド)

$ swift build -v

/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Package.swift
/usr/bin/git clone --recursive --depth 10 https://github.com/ikesyo/Himotoki.git /.../TryKit/Packages/Himotoki
Cloning into '/.../TryKit/Packages/Himotoki'...
remote: Counting objects: 145, done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 145 (delta 71), reused 87 (delta 27), pack-reused 0
Receiving objects: 100% (145/145), 37.07 KiB | 0 bytes/s, done.
Resolving deltas: 100% (71/71), done.
Checking connectivity... done.
Submodule 'Carthage/Checkouts/xcconfigs' (https://github.com/jspahrsummers/xcconfigs.git) registered for path 'Carthage/Checkouts/xcconfigs'
Cloning into 'Carthage/Checkouts/xcconfigs'...
remote: Counting objects: 629, done.
remote: Total 629 (delta 0), reused 0 (delta 0), pack-reused 629
Receiving objects: 100% (629/629), 111.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (227/227), done.
Checking connectivity... done.
Submodule path 'Carthage/Checkouts/xcconfigs': checked out '8ed0ba267f6fb0b53343e11aad067314438a781c'
/usr/bin/git -C /.../TryKit/Packages/Himotoki fetch --tags origin
remote: Counting objects: 1287, done.        
remote: Compressing objects: 100% (511/511), done.        
remote: Total 1287 (delta 802), reused 1235 (delta 750), pack-reused 0        
Receiving objects: 100% (1287/1287), 188.37 KiB | 0 bytes/s, done.
Resolving deltas: 100% (802/802), completed with 32 local objects.
From https://github.com/ikesyo/Himotoki
 * [new tag]         0.1        -> 0.1
 * [new tag]         0.2        -> 0.2
 * [new tag]         0.3        -> 0.3
 * [new tag]         0.4        -> 0.4
 * [new tag]         0.4.1      -> 0.4.1
 * [new tag]         0.4.2      -> 0.4.2
 * [new tag]         0.5        -> 0.5
 * [new tag]         0.5.1      -> 0.5.1
 * [new tag]         0.5.2      -> 0.5.2
 * [new tag]         0.6.0      -> 0.6.0
 * [new tag]         0.6.1      -> 0.6.1
 * [new tag]         0.6.2      -> 0.6.2
 * [new tag]         0.6.3      -> 0.6.3
 * [new tag]         1.0.0      -> 1.0.0
 * [new tag]         1.1.0      -> 1.1.0
 * [new tag]         1.1.1      -> 1.1.1
 * [new tag]         1.1.2      -> 1.1.2
 * [new tag]         1.2.0      -> 1.2.0
 * [new tag]         1.3.0      -> 1.3.0
 * [new tag]         1.3.1      -> 1.3.1
 * [new tag]         1.3.2      -> 1.3.2
 * [new tag]         1.4.0      -> 1.4.0
 * [new tag]         1.5.0      -> 1.5.0
 * [new tag]         2.0.0-beta.1 -> 2.0.0-beta.1
 * [new tag]         2.0.0-beta.2 -> 2.0.0-beta.2
/usr/bin/git -C /.../TryKit/Packages/Himotoki tag -l
/usr/bin/git -C /.../TryKit/Packages/Himotoki tag -l
/usr/bin/git -C /.../TryKit/Packages/Himotoki tag -l
/usr/bin/git -C /.../TryKit/Packages/Himotoki reset --hard 2.0.0-beta.2
/usr/bin/git -C /.../TryKit/Packages/Himotoki branch -m 2.0.0-beta.2
Resolved version: 2.0.0-beta.2
/usr/bin/git -C /.../TryKit/Packages/Himotoki config --get remote.origin.url
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Packages/Himotoki/Package.swift
/usr/bin/git -C /.../TryKit/Packages/Himotoki rev-parse --abbrev-ref HEAD
/usr/bin/git -C /.../TryKit/Packages/Himotoki-2.0.0-beta.2 config --get remote.origin.url
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Package.swift
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swift-build-tool -f /.../TryKit/.build/debug.yaml default -v
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc -module-name Himotoki -incremental -emit-dependencies -emit-module -emit-module-path /.../TryKit/.build/debug/Himotoki.swiftmodule -output-file-map /.../TryKit/.build/debug/Himotoki.build/output-file-map.json -parse-as-library -c /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Builder.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Decodable.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/decode.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/DecodeError.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Extractor.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/KeyPath.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/NSNumber.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Operators.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/RawRepresentable.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/StandardLib.swift /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Sources/Transformer.swift -I /.../TryKit/.build/debug -j8 -Onone -g -D SWIFT_PACKAGE -enable-testing -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc -module-name TryKit -incremental -emit-dependencies -emit-module -emit-module-path /.../TryKit/.build/debug/TryKit.swiftmodule -output-file-map /.../TryKit/.build/debug/TryKit.build/output-file-map.json -parse-as-library -c /.../TryKit/Sources/Try.swift -I /.../TryKit/.build/debug -j8 -Onone -g -D SWIFT_PACKAGE -enable-testing -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

* [new tag] 1.7.0 -> 1.7.0 is not output. 1.7.0 is existing.

* [new tag] 1.7.0 -> 1.7.0 があるのに出えへんな 🤔

Building without Cleaning

.build フォルダと Packages フォルダを削除せずビルド

$ swift build -v

/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Package.swift
/usr/bin/git -C /.../TryKit/Packages/Himotoki-2.0.0-beta.2 config --get remote.origin.url
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /.../TryKit/Packages/Himotoki-2.0.0-beta.2/Package.swift
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swift-build-tool -f /.../TryKit/.build/debug.yaml default -v

Running swift build --clean

build

$ swift build --clean build

The .build directory is removed.

dist

$ swift build --clean dist

The Packages directory and .build directory are removed.

The Packages directory is removed.



Thank you for reading it to the end. 😇