Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

106 duplicate symbols for architecture armv7

Working on my iPhone app and trying to build for debug and I get "106 duplicate symbols for architecture armv7"?

I am using the .workspace file because I am trying to use CocoaPods. If I don't use the .workspace and instead use the .xcodeproj I don't get the error, but then I get missing -lPods .

In my project I have the following targets in the Project Navigator.

Pods (blue icon)
MyProject (blue icon)
  Restkit.xcodeproj (blue icon)
  ... all my files

The issue is that Restkit is making reference to "AFHTTPClient.h" and all the other AF code, but I included it via CocoaPods. I tried deleting the AFNetworking folder from the RestKit library, but apparently the Restkit library can't find the Pods version of AFNetworking?

Is there a way to get RestKit to use the Pods version? If not how do I go about removing Pods from my project?

like image 475
jdog Avatar asked Dec 05 '12 15:12

jdog


2 Answers

There is a line in one of your .h files where your wrote

#include "___.m"

instead of

#include "___.h"
like image 98
fnc12 Avatar answered Nov 15 '22 05:11

fnc12


So I fixed it. After removing the RestKit version of AFNetworking, from the vendor folder, I added it back by dragging into Xcode. It asks which project I want it used/copied to and this time I selected RestKitTest (or whatever the RestKitTesting is named). It works now. Maybe I selected both RestKit and RestKitTest before, which was wrong?

like image 32
jdog Avatar answered Nov 15 '22 06:11

jdog