I am using Resty everywhere in my project, but now since I have to upload image to server, so I try to add another framework called RestKit to handle file upload. But when I compiled, it got error:
duplicate symbol _NewBase64Decode in:
/Users/iforests/Library/Developer/Xcode/DerivedData/Owlch-gnysrakcbhsgkubbjjjfbahlocqi/Build/Products/Debug-iphoneos/libRestKit.a(NSData+Base64.o)
/Users/iforests/Documents/iOSworkspace/Owlch/LRResty.framework/LRResty(NSData+Base64.o)
ld: 2 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is there any way to solve this problem without removing LRResty (since tomorrow is the deadline of this project). Thank you all so much!
Delete these files from the Resty source.
That will take care of the linking issue.
If it stops working because of that, rename the files and category for NSData+Base64 in the Resty code and then anywhere the Resty code imports “NSData+Base64.h”, change the import to whatever you rename the category