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

  • Home
  • SEARCH
  • 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 8939359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:48:24+00:00 2026-06-15T10:48:24+00:00

When saving a Core Data managed object context on iOS 6.0.1 to a SQLite

  • 0

When saving a Core Data managed object context on iOS 6.0.1 to a SQLite store, I run into a strange “CoreData does not support persistent cross-store relationships” exception. It concerns a one-to-one relationship between Quotes and AbstractSources in the model. At runtime it concerns a Quote and a Book (where Book inherits from AbstractSource. All works well in the model editor.)

I’ve researched similar reports and covered the reported causes:

  1. I am assigning both the Quote and the Book to the same persistent
    store using assignObject:toPersistentStore:, so neither remains
    unassigned.
  2. The error description shows that all “absolute” x-coredata ids start
    with the same prefix (e.g.
    “x-coredata://82B3BEB3-60F2-4912-AC80-11AAD29CFF99/”, so there
    really seems to be one store only in use.

My questions are these:

  1. Is there anything else I have to check (perhaps sg. in relation to
    AbstractSource, which I do not touch/control in my source? I am
    creating both the Quote and the Book with a call to
    initWithEntity:insertIntoManagedObjectContext each.)
  2. I noticed that the error description also includes several
    “relative” x-coredata ids (of the form “x-coredata:///…”). Could
    it be that the absolute form is always considered as
    “cross-database”, even if “absolute” prefixes (see example above) are the same?
    And if so, how could I influence any choice between “absolute” and
    “relative” x-coredata ids?

Thx (much) for your attention!

  • 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-15T10:48:25+00:00Added an answer on June 15, 2026 at 10:48 am

    So this is what had (presumably) caused the trouble:

    1. My managed object context’s coordinator has to manage two persistent
      stores. Now the one to which I assigned Quote and Book and were I
      wanted them saved is reset at start-up. There was a bug
      in this code, which rendered this store unusable. Since a second one
      was available it silently took over, in this case leading to unwanted results.
      Lesson: I now assert that there are/remain indeed two stores after setting up the core data stack.
    2. During earlier development of my Core Data model, I had renamed some
      of its entities in the model editor. By mistake I had only changed
      names, but not the entities class properties. So in effect while
      everything worked well in the model editor, by-then-unexpected
      classes were used at runtime, and therefore unexpected classes where
      assigned to unexpected/wrong stores as well. Lesson: I now make sure
      that entities names and their class properties remain in perfect sync (other
      circumstances permitting).

    The issue is now resolved, and I’ve also refactored my code/model to use (non-overlapping) configurations instead of explicit assignments, which should also help going forward.

    Again, thx for your attention

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

Sidebar

Related Questions

I am having trouble saving a photo into core data. I am trying to
I'm using CoreData (with SQLite as the store) in an iOS 4 iPhone application
In Core Data, is there some trick to saving changes to managed objects' attributes
I am getting an NSValidationErrorObject when saving my managed object context. I am trying
I'm getting an error when saving my core data context, here is the log:
I am saving various entities into core data. Each time I need to access
Possible Duplicate: Core Data not saving NSString. Hey all! Currently experiencing a weird issue
Possible Duplicate: Core Data vs SQLite 3 I have been using SQLite for saving
So I'm saving small images to core data which take a really short amount
I'm getting some data from the web service and saving it in the core

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.