When you try to import a library or a framework in your project you might face an issue saying clang: error: linker command failed with exit code 1 (use -v to see invocation)

When you try to import a library or a framework in your project you might face an issue saying clang: error: linker command failed with exit code 1 (use -v to see invocation)

There could be a bunch of options to fix this issue.

I can’t say that my solution is the answer for you. But it could an answer for someone. In my case I did below.

First

  1. Select your target project and go Frameworks, Libraries, and Embedded Content section.
  2. Make Embed column Embed & Sign
  3. Clean and build your project again

Second

  1. Remove the derived data
  2. Clean and build your project again

Third

  1. Go Project > Build Settings
  2. Update Enable Bitcode to No
  3. Go Targets > Build Settings
  4. Update Enable BitCode to No

One comment

  1. Thanks for sharing this article here about the linker command failed with exit code 1. Your article is very informative and I will share it with my other friends as the information is really very useful. Keep sharing your excellent work.

Leave a Reply