Having iOS and macOS app in same Xcode project

Viewed 474

I want to make a Mac version of my iOS app. I have never done this before and have three questions I could not find answers to on the internet.

1) Should I add a new target for the Mac component in my iOS app's Xcode project? If so, is there a way to only send new updates for the iOS version to the App Store if the Mac app is not ready yet?

2) I will like to use iCloud syncing for both apps so changes the user makes on the iOS app can go to the Mac one (vice versa). Does the Mac and iOS app both need to be in the same Xcode project for this to happen?

3) When I want to add an app to App Store Connect, I only get the option of "New App" (iOS or tvOS apps) or "New macOS App". If they're in the same Xcode Project how can I send both (iOS and Mac app) to the App Store?

Thank you in advance!

1 Answers

ad 1.) You should if you of want to share certain parts of code. It also makes it easier to maintain across releases with git.

ad 2.) No. But the shared icloud container will only work after one app has been already approved by apple.

ad 3.) No, OSX apps and ios/tvos apps do not share the same appstore entry, independently of them being in the same xcode project or not.

Related