LoginSignup
0
2

More than 5 years have passed since last update.

Cocoapodsのインストールエラー(xcworkspaceが作成されない)

Last updated at Posted at 2019-06-26

pod installでPodfileを読み取って、ライブラリを導入しようと思っても、workspaceが作成されないことがある。

UsernamenoMBP:GitHubTest2 username$ pod install
Analyzing dependencies
Downloading dependencies
Installing Bolts (1.9.0)
Installing SVProgressHUD (2.2.5)
...(省略)...
[!] Attempt to read non existent folder `/Users/username/iCloud Drive(アーカイブ)/Documents/programing/ios/Githubテスト用/GitHubTest2/Pods/Bolts`.

自分の環境は、"iCloud Drive(アーカイブ)"というフォルダの中にプロジェクトフォルダを作っていたのが問題だった。
問題は、半角スペースが入っていること。

おそらくターミナルは、iCloud\ Drive(アーカイブ)というように、半角スペースを\でエスケープさせないと認知してくれない。

解決法は、半角スペースを含むフォルダの外に、iOS開発のプロジェクトフォルダを格納する事。
Dropboxに移してから、

$ pod install

を行なったら無事にxcworkspaceが作成されました。

半角スペースなど、ターミナルが苦手な記号はフォルダにつけない方が良いし、つけられていないか注意した方が良い。

〜余談〜
ターミナルではcdコマンドで、現在のディレクトリを変えていく事ができるが、
上と同じように、半角スペースを含むフォルダの中に格納されていると、cdコマンドもうまく働かないことがあるので注意。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2