I am working on a project, in xCode 4.5.2 with 2 targets T1 and T2.
When I want to build T1, I get error messages about one file only belonging to T2.
Obviously, even though I think the file belongs to T2, the compiler thinks differently.
Where do I need to check? As far as I can see, I have done the necessary for the file to be inside T2 and not inside T1.
But I must be forgetting something. Any idea?
Thanks for any useful tip.
Check the “target membership” for the file… click on the file in your project and then look at the “File Inspector” along the right side of your Xcode project window:
In this case, I’ve just looked up the target membership for the UIKit.framework, but in your case you should see which target membership the file in question belongs to.