UA-17470720-3

Jump to content


Photo
- - - - -

NSInvalidArgumentException', reason: 'Illegal attempt to establish a relationship 'xyz' between objects in different contexts


  • Please log in to reply
2 replies to this topic

#1 Daniel Boice

Daniel Boice

    Advanced Member

  • STV 5.0 Std
  • PipPipPipPipPip
  • 178 posts
  • LocationPhoenix, AZ
Reputation: 17
Good

Posted 25 October 2013 - 07:25 PM

Tarek,

 

NSInvalidArgumentException', reason: 'Illegal attempt to establish a relationship 'xyz' between objects in different contexts

 

I'm not sure if this is STV or not but I'm starting to get this error with CoreData and iCloud.  Any ideas?  Using STV 3.3.0 and iOS7.0.  

 

Thanks,

 

Dan



#2 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 25 October 2013 - 07:49 PM

You can't have relationships between objects in different managed object contexts


P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#3 Daniel Boice

Daniel Boice

    Advanced Member

  • STV 5.0 Std
  • PipPipPipPipPip
  • 178 posts
  • LocationPhoenix, AZ
Reputation: 17
Good

Posted 26 October 2013 - 05:51 AM

Yes, but I am wondering why it is saying that, since it is the same context (i.e., I have only set up one context).  I am guessing it has something to do with the fallback store context, because the exception seems to happen randomly when accessing a detail view with a relationship.  I just wanted to check if there was anything different happening with contexts in STV or threads.  It is a new bug since I upgraded.

 

Thanks,

 

Dan 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users