Error Building Core Data Stack in Unit Tests?

Try using NSURL fileURLWithPath:path instead to construct the url.

Double check that you are seeing a directory called DataModel. Momd at /Users/neall/iPhone Apps/TestApp/build/Debug-iphonesimulator/LogicTests. Octest/DataModel.momd.

If you added a xcdatamodel file by the Add New File... command in Xcode, you would only have one file and it would be DataModel. Mom (no trailing d). If that's the case, changing the NSString *path = bundle pathForResource:@"DataModel" ofType:@"momd"; to NSString *path = bundle pathForResource:@"DataModel" ofType:@"mom"; will fix your immediate issue.

You want to use the fileURLWithPath: that Claus suggested as well. If you want to do versioning of your model in the future and you currently have only a . Mom file, select your DataModel.

Xcdatamodel file in XCode and go to Design -> Data Model -> Add Model Version. This will force the creation of the DataModel. Momd directory with the DataModel.

Mom file in it. You can just delete the new version it adds into that directory and your original tests will work.

Mom file, select your DataModel. Xcdatamodel file in XCode and go to Design -> Data Model -> Add Model Version. This will force the creation of the DataModel.

Momd directory with the DataModel. Mom file in it. You can just delete the new version it adds into that directory and your original tests will work.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions