ld: framework not found Alamofire clang: error: linker command failed with exit code 1

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.

ld: framework not found Alamofire clang: error: linker command failed with exit code 1
ld: framework not found Alamofire clang: error: linker command failed with exit code 1

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
pod repo update

After 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.

Please share this post:
Native Mobile Application Developer (Android + IOS) having experience in Java, Swift, Kotlin, Objective C, Unity, C#, C/C++, NODE JS & PHP.

2 thoughts on “ld: framework not found Alamofire clang: error: linker command failed with exit code 1

  1. I am no longer sure where you’re getting your information, however good topic. I must spend a while learning more or understanding more. Thank you for wonderful information I used to be searching for this information for my mission.

  2. I like what you guys are up also. Such clever work and reporting! Carry on the superb works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my website 🙂

Ask a Question

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

%d bloggers like this: