UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Cloudkit app with same codebase, macOS uses development database, iOS uses production

Forums > Swift

I have this situation where I released an app with the same code base for iOS and macOS. I use Xcode-cloud for the processing of the apps and let Xcode and Xcode-cloud handle all my signing.

However, the resulting apps, both retrieved from the App Stores, cannot share data together via Cloudkit as the iOS version is using the correct production version and the macOS version is using the wrong development version of the application.

I already embedded cloudkit.framework as mentioned here: https://developer.apple.com/forums/thread/717838

How can I fix this?


TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.