I'm trying to regroup several applications I have in the same Xcode project. So I created a new Xcode project and added two targets, and import the source code of my two apps in one of the targets.
The problem is that I have classes with the same name in the two applications. When I compile the first one, no problem. But if I try to compile the second target, I have lots of issues like this :
In file included from /Users/administrateur/Documents/Merged_iPhone_Projects/Target2/Classes/VisitFormViewController.m:18:
In file included from /Users/administrateur/Documents/Merged_iPhone_Projects/Target1/Classes/VisitFormDetailsViewController.h:11:
/Users/administrateur/Documents/Merged_iPhone_Projects/Target1/Classes/RoundedCornersTableViewCell.h:18:61: error: property has a previous declaration
@property (nonatomic, readonly) BkCustomCellBackgroundView *roundedCornersView;
^
Target2/Classes/RoundedCornersTableViewCell.h:18:61: note: property declared here
@property (nonatomic, readonly) BkCustomCellBackgroundView *roundedCornersView;
I try to google it and found that setting the "Header Search Paths" to $(SRCROOT)/Target1
(or $(SRCROOT)/Target2
), should solve my problem, but this is not working.
Anybody has an other solution?
FYI, I'm using Xcode v.4.4.1