Recently, I came across this “linker command failed with exit code 1” error in my Xcode when I tried to archive my project. Although the App was running perfectly when I run it on the simulator or even on the physical device. The error is the following.
After searching a lot on Google I found the reason that my
Alamofire Pod version was older. In this article, it’s assumed that you are already using
Cocoapods. We need to update the
Alamofire Pod version. This same error can happen with other Pods as well. To resolve this issue, open your terminal, navigate to your project. Now run the following command.
pod repo update
pod repo update command, just clean your project. Now you can run and it should be Archived as well.
After the above steps, if still, you are not able to archive, feel free to share in the comments section.
That’t it. Enjoy 🙂
You can also find other useful helping articles and tutorials in our Coding Articles & Tutorials Knowledge Base.