1

In XCode 4.2, I have some logic tests that I want to exercise against a UIViewController that loads itself from a xib when initialized. However, even though I've added all my xibs and images to the unit test bundle, whenever I try to run those tests i get the following error:

Could not load NIB in bundle: 'NSBundle
</Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/Developer/usr/bin>
(loaded)' with name 'MyController'

Is there something I can do to force my tests to find the xibs and other resources in the proper place? Thanks.

Kevlar
  • 8,804
  • 9
  • 55
  • 81

1 Answers1

1

Turns out i needed to change my unit tests to Application Tests from Logic Tests. This post has some useful info on that:

Why does instantiating a UIFont in an iphone unit test cause a crash?

Community
  • 1
  • 1
Kevlar
  • 8,804
  • 9
  • 55
  • 81