# Including Xcode sub-projects via Introjucer

**URL:** <https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370>\
**Category:** The Projucer\
**Created:** [January 10, 2016, 6:51pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370 "2016-01-10T18:51:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [January 10, 2016, 6:51pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/1 "2016-01-10T18:51:41Z")

</div>

Hi, is it possible to include sub-projects&nbsp;into an Xcode project via Introjucer? I am experimenting with React Native and JUCE and each React component is included via its own Xcode project (see attachment).&nbsp;

It would be nice to be able to set this via Introjucer also.&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [January 10, 2016, 8:09pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/2 "2016-01-10T20:09:37Z")

</div>

This should help:&nbsp;https://github.com/appsquickly/XcodeEditor/blob/40d35e4723b1d3ad66e1dc0517f88c617faca4ca/Source/XCGroup.m#L252

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 11, 2016, 8:56am UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/3 "2016-01-11T08:56:59Z")

</div>

Would be a nice feature, but a big change to the Introjucer project structure, and would need to be cross-platform, so not trivial to do!

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [January 11, 2016, 1:37pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/4 "2016-01-11T13:37:04Z")

</div>

I'm not asking for a cross platform way of having Introjucer sub projects, but an xcode specific setting to declare xcode sub projects. Otherwise i need to drag all the subproject dependencies into the project each time i save in Introjucer.&nbsp;

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 11, 2016, 2:26pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/5 "2016-01-11T14:26:24Z")

</div>

Oh, I see. So you're just after a textbox where you can enter a list of sub-projects? Bit busy to look at it right now, but if you want to have a go, it could be a simple thing that we could add..

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [January 11, 2016, 2:57pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/6 "2016-01-11T14:57:03Z")

</div>

Sure, I'm happy to have a look at it - just been learning the Xcode project structure and it doesn't look too bad :)

---

<div class="post-metadata">

**Author:** ![charlifiiiii](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@charlifiiiii](https://forum.juce.com/u/charlifiiiii)\
**Post date:** [March 30, 2016, 9:37am UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/7 "2016-03-30T09:37:06Z")

</div>

Adding a list of Xcode sub-projects to the Introducer&nbsp;would be an interesting feature indeed.

Similarlly on Windows could we specify&nbsp;a list of vcxproj&nbsp;to add to the sln ?

Thanks

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [March 30, 2016, 4:08pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/8 "2016-03-30T16:08:00Z")

</div>

​I ended up going a different route - using CocoaPods to install React Native instead. I think its a better solution over nested Xcode projects, at least for integrating RN with JUCE projects.

---

<div class="post-metadata">

**Author:** ![timur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/timur/32/541_2.png) [@timur](https://forum.juce.com/u/timur)\
**Post date:** [March 30, 2016, 4:37pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/9 "2016-03-30T16:37:25Z")

</div>

I think nested Xcode Projects are useful. We actually have use cases for them here at ROLI. So I think I will add them as an option to the Introjucer.

---

<div class="post-metadata">

**Author:** ![charlifiiiii](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@charlifiiiii](https://forum.juce.com/u/charlifiiiii)\
**Post date:** [March 31, 2016, 8:42am UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/10 "2016-03-31T08:42:00Z")

</div>

Sounds good !

How about vcxproj for VS ? It may be more tricky to add this feature to Introjucer,&nbsp;to be compatible with&nbsp;all&nbsp;VS versions ?

---

<div class="post-metadata">

**Author:** ![timur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/timur/32/541_2.png) [@timur](https://forum.juce.com/u/timur)\
**Post date:** [March 31, 2016, 10:52am UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/11 "2016-03-31T10:52:17Z")

</div>

Yep... one step at a time :-)

---

<div class="post-metadata">

**Author:** ![timur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/timur/32/541_2.png) [@timur](https://forum.juce.com/u/timur)\
**Post date:** [March 31, 2016, 1:35pm UTC](https://forum.juce.com/t/including-xcode-sub-projects-via-introjucer/16370/12 "2016-03-31T13:35:22Z")

</div>

OK, I just had a look at nested Xcode projects, and yes I could implement this in Introjucer. However I also just found this:

[Xcode Workspaces](https://developer.apple.com/library/ios/featuredarticles/XcodeConcepts/Concept-Workspace.html)

This looks like a much cleaner solution to the same problem. You can keep those workspaces independent and don't have to mess with the Xcode projects or Introjucer files at all.&nbsp;So instead of implementing nested Xcode projects I'd&nbsp;recommend&nbsp;to use workspaces instead!
