LoginSignup
0
0

More than 5 years have passed since last update.

cocoaPodsでpod install後にApple Mach-O Linker (ld) Error Groupと出た時

Last updated at Posted at 2017-07-17

概要

Swift3.0 Realmデータベースを使う に沿って Swift プロジェクトに Realm を導入しようと思ったが、何故か Realm 追加後にビルドした際に下記エラーが出てしまったので、原因と解決方法を共有する。

Apple Mach-O Linker (ld) Error Group

clang: error: linker command failed with exit code 1 (use -v to see invocation)

原因と解決策

pod install をした際に生成される プロジェクト.xcworkspace を開いていなかった為。
cocoaPods を使用する際は pod install の前に xcode を閉じ、下記コマンドから プロジェクト.xcworkspace を開いて作業する必要がある。

open プロジェクト.xcworkspace
0
0
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
0