ios - containerURLForSecurityApplicationGroupIdentifier getting nil value -


i making 2 ipad app communicate 1 file , fetches data 1 file. search , find "containerurlforsecurityapplicationgroupidentifier" can create group , store in that. have write code below. in entitlement file write

<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict>     <key>com.apple.security.app-sandbox</key>        <true/>      <key>com.apple.security.application-groups</key>      <array>         <string>$(teamidentifierprefix)com.xxx.catalogapp.coredata</string>      </array>     <key>keychain-access-groups</key>     <array>         <string>$(appidentifierprefix)com.xxx.catalogapp.coredata</string>     </array> </dict> </plist> 

and in code write this

nsfilemanager* filemanager = [nsfilemanager defaultmanager]; nsurl* storeurl = [filemanager  containerurlforsecurityapplicationgroupidentifier:@"com.xxx.catalogapp.coredata"]; nslog(@"%@", storeurl); 

but storeurl getting nil value.

xcode6 (currently in beta) enforces shared folder ids start "group."

sharing coredata store works me following url xcode6/ios8 both beta.

nsfilemanager* filemanager = [nsfilemanager defaultmanager]; nsurl* storeurl = [filemanager containerurlforsecurityapplicationgroupidentifier:@"group.xxx"]; 

it seems documentation stevesliva linked obsolete xcode6 released


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -