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:

enter image description here

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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -