Questions tagged [ensembles]

Ensembles is an Objective-C synchronization framework for apps using Apple's Core Data.

Ensembles extends Apple's Core Data framework to add peer-to-peer synchronization for Mac OS and iOS. Multiple SQLite persistent stores can be coupled together via a file synchronization platform like iCloud or Dropbox. The framework can be readily extended to support any service capable of moving files between devices, including custom servers.

References

81 questions
0
votes
1 answer

Ensembles: what type of global identifier should I choose for image?

I'm currently implementing persistentStoreEnsemble:globalIdentifiersForManagedObjects: delegate and have a difficulty to decide about what global identifier to provide. My Core Data model has two entities: book and image. For book objects, there is…
Joshua
  • 1,974
  • 2
  • 23
  • 39
0
votes
1 answer

Ensembles and journal_mode="DELETE"

My current Core Data stack is configured with journal_mode="DELETE" as follow: NSDictionary *options = @{NSMigratePersistentStoresAutomaticallyOption: @YES, NSInferMappingModelAutomaticallyOption: @YES, …
Joshua
  • 1,974
  • 2
  • 23
  • 39
0
votes
1 answer

Ensembles and Core Data Light Migration

I am currently doing some tests with Ensembles, specifically testing Core Data light migration. My current configuration is as follow: Device-A running my app with data model 1 Device-B running my app with data model 2 data model 2 is based on…
Joshua
  • 1,974
  • 2
  • 23
  • 39
0
votes
1 answer

XCode can''t find header of 3rd party library

I'm trying to add the Ensembles 2 framework to my iOS project (switching from the open source Ensembles 1, v2 is not open source so I don't have access to the code or cocoa pod anymore). I think I followed the install instructions to the…
Lukas
  • 1,533
  • 16
  • 21
0
votes
0 answers

When removing Ensembles, can the current data be restored to the CoreData store?

If a user decides he/she doesn't want to use syncing anymore (for whatever reason), is there a way to have the app (or Ensembles) to restore the original CoreData store to it's current state from the changes in iCloud? I looked in the "book" but…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
1 answer

IIS webdav and Ensembles

I'm trying to use sync through an IIS 8 Webdav backend with Ensembles. The problem i encounter is that the first sync works fine, but when i try to sync a second time or on a second unit (iPad in this case) I get a server error 405 "method not…
Mathias Åberg
  • 99
  • 1
  • 10
0
votes
0 answers

Data not syncing from iPad2 to iPad1

I have both iPads disconnected from the debugger, running "stand alone"... any changes I make on iPad 1 appear on iPad 2, but the reverse is not true (changes made on iPad2 do NOT show up on iPad 1). I have checked the universal identifier and they…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
0 answers

Why are my two iPads not merging distinct records in Ensembles?

I have two (2) iPads that I am testing with. The two iPads do NOT merge their contents at any time; for instance, I have 2 distinct records on iPad2 and 3 distinct records on iPad1, and they remain this way forever! I determined this by taking a…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
1 answer

How to execute the cdeconvert app from OS X or XCode7?

I found the cdeconvert app, got a clean build and then the error about not passing the file path. Sorry for the lame question, but I have never built/run an OS X app from XCode directly. Question is: how do I execute (either from XCode or OS X…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
2 answers

Why are my files in a different "~\Library\Mobile Documents" folder?

This is an image of my ~\Library\Mobile Documents folder on my desktop: Why are my files under com.mentalfaculty.ensembles.clouddata rather than BookstoreInventoryManager (which is my app name?) Is something set wrong in my app?
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
1 answer

Does this give any indication that Ensembles is saving CD to iCloud?

I found this in ~/Library/Mobile Documents on my Mac: The Baselines folder appears to contain my two records from my CD store, but is difficult to read. My question is: is this a valid way of checking to see if changes are being persisted to…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
1 answer

Ensembles: when to use MagicalRecord's saveWithCompletion vs saveAndWait

I have an existing app (uses MagicalRecord) that I am trying to incorporate Ensembles. I have come across several places in my app where I save using MR_saveToPersistentStoreWithCompletion. I noticed in the Ensembles MagicalRecord example that it…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
1 answer

Ensembles setup code causes linker errors; remove the code, no errors

This is the code (copied and modified from the "book") I'm trying to incorporate into my app (it's basically the same code I was using in another app (in 2014), where I didn't get any build/linker errors): // Ensemble: load the…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
1 answer

Log in to an iCloud account programmatically, given the necessary credentials

Is there a way to log in to an iCloud account programmatically (assuming I have the UserID and Password)? I am using Ensembles 1.0 and would like to have the user enter the iCloud credentials and the app will log into the iCloud account…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
1 answer

CloudKit subscription Error: apsd[81] : Silent Push: Deny app not available

I'm trying to get silent push from CloudKit. But it only works when my app in foreground (OR when its launched from Xcode, in that case notifications are delivered in background too). I've enabled all corresponding Background Modes. Registered for…
CryingHippo
  • 5,026
  • 1
  • 28
  • 32