SAHIL
SAHIL

Reputation: 431

Apple Mach-O Linker Error while Archiving Project

I am getting the error while archiving the project, I googled it for the exact solution but they doesn't meet my requirements.

Apple Mach-O Linker Error Command/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1

Some of the solution which I got,

But it doesn't worked for me, even my project running while testing it in simulator.

Upvotes: 1

Views: 2199

Answers (3)

Xcoder
Xcoder

Reputation: 199

There are many fixes but what was my problem was that I did not need a framework anymore, and I removed it but in one of my files it declared the framework at the top still and used that framework. Deleted it and it worked! Plus check if you have not messed anything up in your AppDelegate.m

Upvotes: 0

SAHIL
SAHIL

Reputation: 431

Finally i solved my issue , actually in my project i have two images which have the same name generally xcode not accept the same name of file but some where it accepted and due to this i am getting the error every time while archiving the project , so i removed the duplicate image and archive the project sucessfully.

hope this will help you guys .

Upvotes: 1

iCreative
iCreative

Reputation: 1506

This error generally occurs when some file is missing in the build files. Check if you have remove some class file & its entry still exist in project file.

You can see it in build settings. Hope it'll resolve your issue.

If still not solved, ping the total description below the exception as found in XCode.

Upvotes: 0

Related Questions