Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 618
Asad Khan Avatar asked Nov 05 '22 07:11

Asad Khan


1 Answers

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).
like image 156
Pete Hodgson Avatar answered Nov 09 '22 06:11

Pete Hodgson