Search code examples
ios5xcode4.2clangrestkit

RestKit Failed With Error clang failed with exit code 1


I have RestKit 0.9.3 Version and XCode 4.2 Followed the instructions on RestKit for installing on XCode 4.x and i the error mentioned below.

I googled a lot, check many stack answers but none server my problem. I checked the linker flags, they are configured as per the tutorial.

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1

Error shown in the image:

enter image description here


Solution

  • if you're building for the iPhone, just make sure you don't have the RestKit.framework added to your target; in the 'Link Binary With Libraries'. HTH