Is it possible to have separate out AppDelegate.h for different targets: iPhone/iPad?
I have a default common main.m:
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
I have 2 targets setup correctly with an appdelegate.h/.m for each target in each iPhone/ iPad folder.
They header files are similar and it is complaining about Duplicate interface definition
from the iPad appdelegate.h when I build the iPhone target. However, the reverse just builds ok.
How can I fix this?