![]() Also, we will only cover projects targeted for iOS within this post, but look for a follow-up post that discusses extending these projects to work on Mac OS X as well. Let’s just write a Hello World application that uses an external framework to get the text - it will demonstrate all that we need. Note: this post was written with Xcode 4.4 and 4.5 in mind, so older versions may have had different ways of doing things.įor the purposes of this example we need something simple. Let’s walk through doing it the right way. If you are having to do more, then the sub-project was not designed correctly.Īs it turns out, Xcode already does this right, but the proliferation of how-to guides usually get it wrong and make developers go through more hoops than they need to. ![]() ![]() Add the project to the top project’s dependencies.The proper way to build sub-projects is that a user of your sub-project does not have to do anything but: Invariably, this involves changing Xcode project settings both in your main application, and in the sub-project so that everything works out. ![]() I have read a lot of how-to guides on blogs over the past few years on how to set it up Xcode sub-projects so you can build your project, a dependent sub-project, and have all the header files and libraries be found. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |