Asad Khan
Asad Khan

Reputation: 11899

Error running google tool kit for mac unit test

I am trying to install google toolkit for mac, everything is setup as advised here : http://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting but when I try to compile I get this error

Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle (loaded)’ with name ‘MainWindow’‘

Any suggestions..? what am I missing...?

*EDIT : * Solution is to add your .xib file to the unit test target you have.

Upvotes: 5

Views: 256

Answers (3)

peterept
peterept

Reputation: 4427

Delete MainWindow.xib from the project-info.plist file.

Upvotes: 0

Pete Hodgson
Pete Hodgson

Reputation: 15845

Alternative solution is to modify your unit testing target to not try and load the MainWindow nib:

  • Open your unit testing Target's info page
  • Switch to Properties tab
  • clear the contents of the "Main Nib File" textbox (it will probably have "MainWindow" before you clear it).

Upvotes: 2

jv42
jv42

Reputation: 8593

You mean when you run, not when you compile?

Are you sure you've created the proper type of application? The MainWindow.xib file is created by Xcode when creating a new project.

Upvotes: 0

Related Questions