質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

Q&A

0回答

236閲覧

swift package update で特定のライブラリがFetchされる現象について

退会済みユーザー

退会済みユーザー

総合スコア0

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

0グッド

0クリップ

投稿2018/06/21 00:35

おはようございます。
もしご存知の方がいたらよろしくお願いします。

困っている事
1.swift package update 実行で Package.swift にない ShellOut というライブラリが Fetch される。
(Clone はされない)
2.MacOS では問題無いが、Ubuntu では Fetch の途中で止まってしまう。

解決したい事
最終的には何らかの SMTP, Neo4j 用のライブラリを Ubuntu 上の Swift に組み込みたいのですが、
今回の質問では、そもそも Package.swift にないライブラリがなぜ Fetch されてしまうのかを知りたいです。

環境
・Swift 4.1
・Xcode 9.4.1
・MacOS 10.13.5
・Ubuntu 16.04.4

現象が起きるコマンド

最後にある swift package update を Ubuntu で実行すると、途中で止まります。
もし確認して頂ける方がいたら注意して下さい。

$ cd ~
$ mkdir Sample
$ cd Sample/
$ swift package init --type executable

(Package.swift を以下のように編集する)

Swift

1// swift-tools-version:4.0 2// The swift-tools-version declares the minimum version of Swift required to build this package. 3 4import PackageDescription 5 6let package = Package( 7 name: "Sample", 8 dependencies: [ 9 .package(url: "https://github.com/IBM-Swift/Swift-SMTP.git", from: "4.0.0"), 10 .package(url: "https://github.com/Neo4j-Swift/Neo4j-Swift.git", from: "4.0.0"), 11 ], 12 targets: [ 13 .target( 14 name: "Sample", 15 dependencies: []), 16 ] 17)

$ swift package update


swift package update の実行結果

・ MacOS
Fetching https://github.com/IBM-Swift/Swift-SMTP.git
Fetching https://github.com/Neo4j-Swift/Neo4j-Swift.git
Fetching https://github.com/IBM-Swift/BlueSocket.git
Fetching https://github.com/IBM-Swift/BlueSSLService.git
Fetching https://github.com/IBM-Swift/BlueCryptor.git
Fetching https://github.com/IBM-Swift/LoggerAPI.git
Fetching https://github.com/IBM-Swift/CommonCrypto.git
Fetching https://github.com/Neo4j-Swift/Bolt-swift.git
Fetching https://github.com/antitypical/Result.git
Fetching https://github.com/Neo4j-Swift/PackStream-swift.git
Fetching https://github.com/JohnSundell/ShellOut.git
Cloning https://github.com/Neo4j-Swift/Neo4j-Swift.git
Resolving https://github.com/Neo4j-Swift/Neo4j-Swift.git at 4.0.2
Cloning https://github.com/IBM-Swift/CommonCrypto.git
Resolving https://github.com/IBM-Swift/CommonCrypto.git at 1.0.0
Cloning https://github.com/IBM-Swift/BlueSSLService.git
Resolving https://github.com/IBM-Swift/BlueSSLService.git at 0.12.84
Cloning https://github.com/Neo4j-Swift/Bolt-swift.git
Resolving https://github.com/Neo4j-Swift/Bolt-swift.git at 1.0.3
Cloning https://github.com/IBM-Swift/LoggerAPI.git
Resolving https://github.com/IBM-Swift/LoggerAPI.git at 1.7.3
Cloning https://github.com/IBM-Swift/BlueSocket.git
Resolving https://github.com/IBM-Swift/BlueSocket.git at 0.12.94
Cloning https://github.com/Neo4j-Swift/PackStream-swift.git
Resolving https://github.com/Neo4j-Swift/PackStream-swift.git at 1.0.2
Cloning https://github.com/IBM-Swift/BlueCryptor.git
Resolving https://github.com/IBM-Swift/BlueCryptor.git at 1.0.4
Cloning https://github.com/antitypical/Result.git
Resolving https://github.com/antitypical/Result.git at 3.2.4
Cloning https://github.com/IBM-Swift/Swift-SMTP.git
Resolving https://github.com/IBM-Swift/Swift-SMTP.git at 4.0.0

( Fetch のみされて、このあと問題無くコンパイルまで出来る )

・ Ubuntu
Fetching https://github.com/IBM-Swift/Swift-SMTP.git
Fetching https://github.com/Neo4j-Swift/Neo4j-Swift.git
Fetching https://github.com/IBM-Swift/BlueSocket.git
Fetching https://github.com/IBM-Swift/BlueSSLService.git
Fetching https://github.com/IBM-Swift/BlueCryptor.git
Fetching https://github.com/IBM-Swift/LoggerAPI.git
Fetching https://github.com/IBM-Swift/OpenSSL.git
Fetching https://github.com/Neo4j-Swift/Bolt-swift.git
Fetching https://github.com/antitypical/Result.git
Fetching https://github.com/Neo4j-Swift/PackStream-swift.git
Fetching https://github.com/JohnSundell/ShellOut.git

( Fetch されて、ここで止まってしまう。3分ほど待ったが動き無し)


よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問