Re: Project references: how to do it correctly?
Re: Project references: how to do it correctly?
- Subject: Re: Project references: how to do it correctly?
- From: Scott Tooker <email@hidden>
- Date: Thu, 18 Mar 2004 14:33:56 -0800
If you add a project file to another project (but don't add it to any
of the targets), then you will get a cross-project reference that
allows access to all the targets in the sub-projects (for the purposes
of target dependencies) and all the products generated by that project
(the products are listed under the cross-project reference.
Cross-project references do not provide access to all of the files in
the referenced project. For that you'll have to add the files/folders
to the main project.
Scott
On Mar 18, 2004, at 10:40 AM, Konstantin Anoshkin wrote:
> It must have been documented somewhere and it has been certainly
> discussed on this list, but I can't get it to work.
> I have separate projects for 2 frameworks and 2 plug-ins which should
> be packaged inside my app bundle. Everything works, but I'm getting
> tired of having 5 projects open simultaneously. I'd prefer to combine
> all of them in one larger project. So I take my app project and start
> trying to 'import' other projects' files into it. This is where I am
> lost. I have found several ways to do something like it, but none of
> them seem satisfactory or even correct.
> a) With my app project open I press Cmd-Option-A, select every file I
> need belonging to another project and add them literally one by one.
> Cons: I always forget something and I have to create a new target from
> scratch, carefully reproducing the imported project target's settings
> (because I don't actually import the project or any targets - just
> files).
> b) With my app project open I press Cmd-Option-A, select another
> project's folder and add it as a _reference_. Cons: I can't access the
> imported project's targets.
> c) I press Cmd-Option-A, select another project's folder and add it
> creating groups for each folder. Same as b)
> d) I open two projects and drag 'subproject' target to my app project.
> Cons: the source project is left without targets (is it a bug?), I
> can't access the imported target's files. However, I can edit the
> imported target directly.
> e) I press Cmd-Option-A and select another project's file (*.xcode).
> Pros: I can open that project by double-clicking its icon in my app
> project. Cons: it isn't very much different from what I have now.
>
> Can anybody, please, be so kind as to provide the detailed steps on
> adding one project to another so that I could access both the
> subproject's target settings and its files from _one_ project window?
> Is this supported at all?
> Thanks in advance.
> Konstantin.
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.