Sharing classes between projects in xcode/objective-c -


I have a customer & lt; => The server app is building for Mac OS X, which I have used for purpose-c / coco and xcode, I have created a separate project for both apps, and I think the best way to share the classes between them I am here. I have created many sections which would be useful for both. So far, I'm copying them, but I think this is not the best solution.

How do I share classes effectively? Should I repeat it as a 1 project and aim at just two?

Thanks

If you have more than two or more products that are well If you are going to share the normal code from a suite of products, then you can consider creating a single xcode project, and then you can add a different target for each product that is both shared and product-specific Will be built. With the code shared, the client / server will be great candidates for pair products possibly to go this way.

Boiled down, this is the original deal to make for each goal in your encoded project that you want, you specify which files should be used to make it: Source files, art, xibs, and so on. In this way, for example, you can create your client product to maintain A, B, C, D, E, F, and your server product using A, F, X, Y, Z files. .

I really like to keep each related product under a single xcode project "roof", because you do not have to jump around exoded projects, and this is actually the SCM management for shared files. Simplifies.

Here's a link to Apple's Docs:

Update: When it comes to configuring target-specific header files in the xcode, there may be some additional trouble (It's always something ... right?); For example, use "myHeaderA.h" for this goal and "myHeaderB.h" for that goal. This is a great post which is how to share: Caution: after setting things like this to you, xcode no longer knows any path to find any of your targeted header files, so you can manually To do this, right-click Get information on your target, select the Build category, then add your path through the "Header Search Path" setting. Paths are searched in the order you entered.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -