0

I have a project using cocoa pods, all is woking fine,

but now that i did cmd+u, for testing the app,

i get an error on my app-prefix.pch

complaining that CoreData+MagicalRecord.h file not found

but only complains for trying to test, builds fine...

this is a lib from a cocoapods,

what am i missing?

thanks

manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216
  • possible duplicate of [Libraries not found when using CocoaPods with iOS logic tests](http://stackoverflow.com/questions/14512792/libraries-not-found-when-using-cocoapods-with-ios-logic-tests) – Keith Smiley Aug 01 '14 at 15:37

1 Answers1

1

My answer here is what you want:

What you want to use is link_with from your Podfile. Something like:

link_with 'MainTarget', 'MainTargetTests'

Then run pod install again.

The bigger issue is probably that your unit test target isn't dependent on your main target. If you fixed that more like the Xcode template projects you'd be better off in the long run.

Community
  • 1
  • 1
Keith Smiley
  • 61,481
  • 12
  • 97
  • 110