iOS Swift Newbie Gotchas Reminders #1 — clang: error: linker command failed with exit code 1 (use -v to see invocation)

Raymond
iOS Newbies
Published in
2 min readJan 12, 2019

--

This is a series of XCode / Swift / iOS Programming Gotchas to remind myself and many other beginner programmers whom are stressing out with these errors when developing their own iOS apps via XCode.

Learning is a process of making many mistakes.

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

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

When you’re setting up different build environments for development and production, remember to always run pod install again to ensure that your “Pods Project” and “Your Project” has the same build configuration setup.

Solution:

Remember to rerun “pods install” if you:

  1. Add/Remove/Rename a Scheme
  2. Add/Remove/Rename a Project Configurations

Alternate Solution:

Completely uninstall all all pods and reinstall pods.

Extras:

Remember to set your Schemes with the correct Build Configuration

--

--