taffarel
taffarel

Reputation: 4045

Creating two targets in XCode 4

I want to create two targets for my application iphone and ipad version. My question is : Do I need to copy all the files from one target to another , because i found out that there are two AppDelegate files in my project, and what about resource and library files? This is the first time when i am trying to setup a multitarget project.

Upvotes: 3

Views: 96

Answers (1)

trojanfoe
trojanfoe

Reputation: 122391

No, there is no need to copy source files. You can click on each file and tell Xcode which target they belong to (The Target Membership section of the File Inspector tab in the right pane).

Any files that are meant to be different (like the delegate classes you mention) obviously won't be added to both targets.

Upvotes: 2

Related Questions