LoginSignup
3
1

More than 5 years have passed since last update.

xcodeが「linker command failed with exit code 1」とか出してつらい

Posted at

概要

cocoapodsをいじっていたら、xcodeが 「linker command failed with exit code 1」 とエラーを出してきた。
cocoapodsで読み込んだライブラリも何かおかしい(importできなかったりする)
でもよくわからない。つらい。

解決

pod関連のファイル消してinstallし直したら解決しました。

  1. プロジェクトのPodsフォルダを消す
    Pods -> 右クリック -> Delete -> Move to Trash
    e566edf9729d796361bcf86fc1b20f59.png

  2. Podfile.lockを消す
    こいつが残っているとinstallし直しても同じ状態に戻される

  3. プロジェクトの .xcworkspaceファイル(pod installで作られるファイル)を消す

  4. pod install を実行

  5. 動いたー

その他

参考

3
1
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
3
1