0

We have 3 apps that we maintain, that all use the same menu controller and Core Data model. In addition, one of the apps uses several views and controllers from one of the apps. It's getting to the point that we need to find some way to separate into different projects to prevent painful Xcode project merges. Right now all the code is mixed in together and each app has its own target in one Xcode project.

Is there any way we can separate the project easily into different projects that have AppA, AppB, and AppC where AppB and AppC depend on AppA?

2 Answers 2

2

Depending on how each app is different, you can create different targets in your Xcode.

Here's a docs on how you create Xcode targets.

If that does not suit your need, you can create multiple projects and reference files from other projects. I really can't tell what you'd need without more information.

Sign up to request clarification or add additional context in comments.

1 Comment

I've just made some minor edits to the question, Is that enough information now?
1

Maybe use cocoapods.

You can make your own (private) pods for the various files that your projects rely on and then keep them updated in their own repository, and then the projects can include the pod and update it when needed. You can also point specific projects to specific branches of the pod repo etc.

(Not sure whether Core Data is supported in pods yet though, might be)

4 Comments

I thought about that, but doesn't that mean that every time you add a file to the project, you need to run pod update to use the file in your other project?
Also, are images and xib files included with Cocoapods?
Re: first question, yea, that's not really that big of an inconvenience. Re: second: images for sure, xib presumably.
How would I include the resources? I added s.resources 'Resources/**/*.{jpg, png, xib}' to it but it didn't add the files to the pod.

Your Answer

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.