11

I'm taking over some project of a colleague that is on holidays now.

Other projects have gone fine, but in this particular one, I have found a project inside a project, like using a framework I guess.

So what is the name of this technique?

project inside project tree image

How to insert and interact with it? just import?

Thanh-Nhon Nguyen
3,4483 gold badges30 silver badges42 bronze badges
asked Nov 29, 2011 at 2:52

2 Answers 2

12

They are called cross project references. From the link below:

Cross-project references are a convenient way to create relationships between two separate Xcode projects.

One method of creating shared frameworks is using sub-projects. You can also do it with single projects. More here:

https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html

Other links:

Xcode 4 Adding a Sub Project

Cœur
39k25 gold badges207 silver badges282 bronze badges
answered Nov 29, 2011 at 3:06
Sign up to request clarification or add additional context in comments.

Comments

2

Xcode Cross-project references

cross-project references aka project in project aka sub-project aka nested projects. This approach uses Explicit dependency[About] [How to setup]

If you already have separate Xcode projects for your framework and application, you can take advantage of Xcode’s cross-project references to embed the framework in your application. Cross-project references are a convenient way to create relationships between two separate Xcode projects.

To define explicit dependencies between targets in separate project files, project files should be nested. This means that a target can set explicit dependencies of any other target within the same project file, or any nested child project file.

In XCode 4, the idea of workspaces[About] is supposed to supersede the functionality of XCode 3s cross-project references

answered Dec 6, 2019 at 19:12

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.