I am working on a iOS project that uses core data. I am using swift. The Core Data stack is setup right and all seems to be fine. I have created a class for an entity (NSManage
With Xcode 7, and @testable
, you should no longer need to update the managedObjectClassName
or use other hacks. Here's what I did to get it working in Xcode 7.2.
@testable
line to the top of all of your test classes:import XCTest
@testable import MyApp
class MyAppTests: XCTestCase {
}
If you're still having issues you may want to try these additional tips: https://forums.developer.apple.com/message/28773#28949
I fought with this one for a while so I hope it helps someone else out.