Swift: Breakpoint in CoreData library

前端 未结 8 1687
谎友^
谎友^ 2020-12-10 14:21

XCode 6 Beta 3 using Swift.

In my App I use CoreData. When I run my App in simulator, XCode pops up the debugger with a breakpoint set somewhere in the CoreData libr

相关标签:
8条回答
  • 2020-12-10 15:22

    Following helped me ! If I undone one of this settings the breakpoint error comes again !

    1. You have to set for your Entity-Model in your *Model.xcdatamodeld in property "Class" the same Name example: Name=Chat Class=Chat

    2. You have to add Code @objc(yourClass) above your class

    Pictures 1: http://i.stack.imgur.com/xoxtu.png

    Pictures 2: http://i.stack.imgur.com/LkYYq.png

    0 讨论(0)
  • 2020-12-10 15:23

    In your Core Data *.xcdatamodeld file, prefix your entity's class name with your app name. It should look something like this when you're done:

    entity class name prefix

    0 讨论(0)
提交回复
热议问题