# How to create a framework structure like the one used in the book

**URL:** <https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062>\
**Category:** Advanced iOS App Architecture\
**Created:** [October 29, 2018, 8:02am UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062 "2018-10-29T08:02:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![brudus](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brudus/32/99201_2.png) [@brudus](https://forums.kodeco.com/u/brudus)\
**Post date:** [October 29, 2018, 8:02am UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/1 "2018-10-29T08:02:15Z")

</div>

I’ve been an iOS developer for 2 years but I’ve honestly never created frameworks before.

I really like the way the project of the book is structured with ‘Koober’ as the slim app and ‘Koober\_iOS’, ‘KooberUIKit’ and ‘KooberKit’ as frameworks with their own separated code. However, I was wondering how I could build something like this on my own. All of those frameworks show the usual directory icon not this framework icon. Does that mean they are included differently? Can I create them directly inside my app and work on them at the same time as I work on the app itself?

A short answer with a step-by-step guide would be very appreciated! Thanks for writing such a great book! Can’t wait for all chapters to be released.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [October 30, 2018, 6:49pm UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/2 "2018-10-30T18:49:09Z")

</div>

@brudus Thanks very much for your question!

It just so happens that we recently released a tutorial on that very topic!

Here is the [link](https://www.raywenderlich.com/5109-creating-a-framework-for-ios) 🙂

I hope this helps!

All the best!

---

<div class="post-metadata">

**Author:** ![brudus](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brudus/32/99201_2.png) [@brudus](https://forums.kodeco.com/u/brudus)\
**Post date:** [October 30, 2018, 8:14pm UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/3 "2018-10-30T20:14:34Z")

</div>

@syedfa Thanks, I will check that out!

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [November 1, 2018, 3:18am UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/4 "2018-11-01T03:18:34Z")

</div>

@brudus Anytime! I hope it helps!

---

<div class="post-metadata">

**Author:** ![itspecialists](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/itspecialists/32/81494_2.png) [@itspecialists](https://forums.kodeco.com/u/itspecialists)\
**Post date:** [January 23, 2019, 3:45pm UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/5 "2019-01-23T15:45:33Z")

</div>

I believe the setup is not exactly as the one in tutorial @syedfa mention. You need to add new targets to the project, not new projects. I’m trying to make the same setup with cocoapods but I’m having some issues. I was wondering if you could provide like a sample of a Podfile so I can achieve the same result with cocoapods.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [January 23, 2019, 4:20pm UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/6 "2019-01-23T16:20:47Z")

</div>

@jab2109 @rcach Can you please help with this when you get a chance? Thank you - much appreciated!

---

<div class="post-metadata">

**Author:** ![rcach](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rcach/32/81827_2.png) [@rcach](https://forums.kodeco.com/u/rcach)\
**Post date:** [January 28, 2019, 5:14pm UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/7 "2019-01-28T17:14:48Z")

</div>

Hi @itspecialists, here’s a version of Koober ([KooberPods.zip](https://files.chunter.kodeco.com/original/3X/5/a/5ac1721ecfa2a8f1fc7e0d3cc778dc84d6f2d9ac.zip) (2.0 MB)  
) that is setup with Cococapods. Each target is a development pod. To create this:

- I created the Xcode project for the app target, then I ran `pod init` to create the Podfile for the app.
- Afterwards, I ran `pod lib create [pod name]` for KooberKit, KooberUIKit and Koober\_iOS.
- I added all the 3rd party dependencies to each podspec file for KooberKit, KooberUIKit and Koober\_iOS.
- The last step was to add these development pods to the app’s Podfile.

Hope this helps. If anything doesn’t work or if you have any questions please feel free to reach out.

Cheers,  
Rene

---

<div class="post-metadata">

**Author:** ![itspecialists](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/itspecialists/32/81494_2.png) [@itspecialists](https://forums.kodeco.com/u/itspecialists)\
**Post date:** [January 30, 2019, 4:17am UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/8 "2019-01-30T04:17:41Z")

</div>

Thank you so much @rcach. I really appreciate it. And congrats for the awesome book you’ve writing.

I’m sure I’ll help a lot of people.

Regards,

---

<div class="post-metadata">

**Author:** ![dangtrunganh](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dangtrunganh/32/81494_2.png) [@dangtrunganh](https://forums.kodeco.com/u/dangtrunganh)\
**Post date:** [June 27, 2020, 8:54am UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/9 "2020-06-27T08:54:37Z")

</div>

I tried but I don’t see them like your structure. Can you explain the steps?

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 8, 2020, 5:58am UTC](https://forums.kodeco.com/t/how-to-create-a-framework-structure-like-the-one-used-in-the-book/54062/10 "2020-07-08T05:58:17Z")

</div>

@dangtrunganh Do you still have issues with this?
