How do containers for ubiquity work between iOS and Mac OS X applications?

I have these two applications, one iOS and one Mac OS X, each with a different Bundle identifier.

In order for the two applications to synchronize and share files, I had to add the ubiquity container of the iOS application to the list of ubiquity containers in the Mac OS X application.

In the Xcode summary for a Mac OS X application, I cannot add my own package identifier as a ubiquity container. Mac OS X will store the newly added files in its own ubiquity and therefore are not available for the iOS app.

How can I properly configure both applications to share and synchronize all added files using the same ubiquitous container?

+5
source share
2 answers

In order to allow multiple applications access to the same data / ubiquity store, you need to do several things. First, you need to open the Xcode project and follow these instructions ( Apple white paper here ):

  • Open the Xcode project, and then go to the project’s target settings. Click the Features tab to open project options for additional Apple services. Xcode 5.0 Project Capabilities
  • iCloud . Ubiquity , . , , , Ubiquity . Xcode iCloud project ubiquity container
  • iCloud iCloud, URL- . Apple :

    URL- ubiquity, NSFileManager URLForUbiquityContainerIdentifier:. , , .entitlements. nil , URL- .


-, iCloud Display Set iTunes Connect. , , . , :

, iCloud Display Set:

  • iTunesConnect " "
  • iCloud Display Sets
  • Create New,
  • , :
    enter image description here

! , , .

+1

iOS/Mac iOS BundleID com.alexanderwinn.Example Mac com.alexanderwinn.ExampleMac, ubiquity com.alexanderwinn.Example. , Mac, , Mac BundleID. , , , !

0

All Articles