Swift: Breakpoint in CoreData library

前端 未结 8 1710
谎友^
谎友^ 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:15

    Thanks the last helped!!!

    • make the NSManagedObject-derived class and its relevant properties public
    • do not include its source file in the test target's Compile Sources
    • import the app target in the test file -- e.g., import MyApp in MyClassTests.swift

提交回复
热议问题