Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9043693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:47:18+00:00 2026-06-16T10:47:18+00:00

I am currently syncing my entire Core Data store to iCloud so that the

  • 0

I am currently syncing my entire Core Data store to iCloud so that the same data is available on all of the users iOS devices. This is all set up using MagicalRecord by doing this:

[MagicalRecord setupCoreDataStackWithiCloudContainer:@"xxxxxxx.com.mydomain.MyAppName" localStoreNamed:@"MyAppName"];

However, I would like to store some device specific entities in the database. It’s basically used for caching information retrieved from the web and I don’t want this to take up space on the users iCloud account.

I believe there would be two ways to do this:

  1. Choose which tables of a database should be synchronized and ignore the tables used for device specific entities.
  2. Have MagicalRecord manage multiple databases and store the entities which should be synchronized in one database and the device specific in the other.

I don’t know if any of those two ways are possible or which would be the most simple to maintain and/or implement.

Does anyone know if this is possible and how it can be done? A code example would be greatly appreciated.


UPDATE

I am trying to follow the approach proposed by casademora in the answer below but when doing so both of my stores end up beign synced to iCloud. I have added the following in application:didFinishLaunchingWithOptions:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [MagicalRecord setupCoreDataStackWithiCloudContainer:@"xxxxxxxxx.com.mydomain.MyAppName" localStoreNamed:@"MyAppName_iCloud"];
    [[NSPersistentStoreCoordinator coordinatorWithInMemoryStore] addSqliteStoreNamed:@"MyAppName" withOptions:nil];

    // Override point for customization after application launch.
    return YES;
}

I have added two data models to the project. One named MyAppName_iCloud.xcdatamodeld and one named MyAppName.xcdatamodeld.

I would like to avoid that the MyAppName store is synced to iCloud.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T10:47:20+00:00Added an answer on June 16, 2026 at 10:47 am

    MagicalRecord is merely a collection of useful helper methods that make CoreData easier to deal with. MagicalRecord is not a wrapper or a replacement for CoreData. This is key to understand that whatever CoreData can do, MagicalRecord can do. So, if CoreData can handle multiple persistent stores, MagicalRecord can as well. The only trick is to find the proper helper method that fits your needs. In this case, that method is in NSPersistentStoreCoordinator. Take a look at the -addSqliteStoreNamed: method. This will do what you need, without all the extra parameters of the regular addPersistentStore: method (which is actually used under the covers anyhow)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We currently have an application that starts its own background services to manage syncing
Currently I am working on a system in PHP (for syncing data between webservices)
I am currently building my Core Data model, which I would like to sync
I am currently coding a web page that allows users to change local settings
We're having this issue where different threads see different data on the same records
I am developing an application for data syncing between Hive and Teradata. For this
Currently, I am writing a MiddleWare application that synchronizes information between and accounting application
Currently working with converting SQLException error messages into messages that are more useful for
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
I'm working on a real-time JavaScript Application that requires all changes to a database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.