App for iOS and MacOS X

I will create an application that launches it as an application for the iPhone. Then an OS X application with very similar functionality will be developed. Both applications will have a large code base and rely heavily on content stored in Core Data, so it seems logical to store everything in one Xcode project.

Q1. This is a good idea, and can it be done? What is the best way to fix this?

Q2. I want to sync the contents of the master data via iCloud (between the iPhone app and the OS X app), can someone point me to a good source of how this works (I am a registered Apple developer, but cannot find it)

Q3. The iPad version may appear later, should I start with a universal application or convert it later?

+6
source share
2 answers

This should be created in one workspace in Xcode 4. I would like to create separate projects for OS X and iOS applications, but save the common code in another project that will have several goals - one for the static library for iOS and one for OS X Each project must be configured to include the correct library from the overall project.

For basic data, see the video What's New in Core Data for iOS by WWDC 2011 (obviously, an Apple account is required for developers):

http://developer.apple.com/videos/wwdc/2011/includes/whats-new-in-core-data-on-ios.html#whats-new-in-core-data-on-ios

+7
source

I would take a look at the Chameleon project, which can help you with your OS X port.

http://chameleonproject.org/

In addition, iCloud information should not be mentioned here, as it is under the NDA.

As for the universal solution, you can convert it to Universal at a later stage if you do not want to do the work now.

+2
source

Source: https://habr.com/ru/post/893052/


All Articles