Open amirrajan opened 6 years ago
This might help get you started on the Rakefile front. You might not need all of this and they’ll be different since photos are an existing format.
app.info_plist['CFBundleDocumentTypes'] = [
{
'CFBundleTypeName' => 'Mimic File',
'LSItemContentTypes' => ["#{app.identifier}.mimic"],
'LSHandlerRank' => 'Owner'
}]
app.info_plist['UTExportedTypeDeclarations'] = [
{
'UTTypeConformsTo' => ['public.json'],
'UTTypeDescription' => 'Mimic File',
'UTTypeIdentifier' => "#{app.identifier}.mimic",
'UTTypeTagSpecification' => {
'public.filename-extension' => 'mimic',
'public.mime-type' => 'application/json'
}
}
]
app.info_plist['NSUbiquitousContainers'] = {
"iCloud.#{app.identifier}" => {
'NSUbiquitousContainerIsDocumentScopePublic' => true
}
}
app.entitlements['com.apple.developer.icloud-container-identifiers'] = ["iCloud.#{app.identifier}"]
app.entitlements['com.apple.developer.icloud-services'] = ['CloudDocuments']
app.entitlements['com.apple.developer.ubiquity-container-identifiers'] = ["iCloud.#{app.identifier}"]```
I am working on a sample CLoudKit app, would this help?
@tmillican may have something to contribute to this too.
A sample app showing how to save to iCloud.