iphone - Sharing iCloud data between an iOS app and an OSX app with NSUbiquitousKeyValueStore -
i've built app intended run (and share icloud data) on both iphone , on mac osx. 2 apps have different bundle identifiers (ending in .ios
, .osx
respectively), have set ubiquity containers
in icloud settings same:
unfortunately, after synchronizing nsubiquitouskeyvaluestore
, appears data created on 1 device not available on other.
i solved problem editing .entitlements
file automatically created xcode. in addition "ubiquity containers", there row in file called "icloud key-value store" can modified use same bundle path. once changed, had clean/rebuild both apps , viola! data shared.
Comments
Post a Comment