Hello, I'm working on a project which shall contain two targets. One for building a Framework to use in Mac development and another to create a static library to use in iPhone development.
In the common code it's no problem to #ifdef between the platforms, but I just can't get the targets and dependencies right.
The first question is, which base SDK to use? For example if I use Mac 10.5 i can't include the UIKit framework (it is marked red and doesn't show the header files if i expand it). Even if the target that actually links against it builds for iPhone OS..
The other question is, how about the Foundation.framework, or stuff like Security.framework? How to deal with them, as I can only include one of the versions (Mac or iPhone SDK)...
Anyone has an advice for me? I'd like to have a clean project structure and definitely the same codebase for both targets... Are configurations the way to go?
Thanks!