Apple Mach-O Linker Error using Core Data classes in OCUnit

前端 未结 3 1862
不思量自难忘°
不思量自难忘° 2021-01-18 17:12

OK, here\'s my code in my test class:

 - (NSManagedObjectContext*)managedObjectContextWithConcurrencyType:(NSManagedObjectContextConcurrencyType)concurrencyT         


        
3条回答
  •  情书的邮戳
    2021-01-18 18:17

    In my experience i386 errors tend to come from missing libraries. Its not enough to just #import them in your file, you must also add them to the project libraries. Go into the Project Target -> Build Phases -> Link Binary with Libraries and in your case add the libraries associated with Core Data.

提交回复
热议问题