iOS Swift Newbie Gotchas Reminders #1 — clang: error: linker command failed with exit code 1 (use -v to see invocation)
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)
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:
- Add/Remove/Rename a Scheme
- Add/Remove/Rename a Project Configurations
pod install
Alternate Solution:
Completely uninstall all all pods and reinstall pods.
pod deintegrate && pod install