ios - Trouble Adding OCUnit Testing Framework to Existing Xcode Project -


i trying integrate unit tests in current xcode project using ocunit testing framework. have been following apple's documentation:

http://developer.apple.com/library/mac/#documentation/developertools/conceptual/unittesting/02-setting_up_unit_tests_in_a_project/setting_up.html,

regarding setting logic tests. when switch testing scheme , run 'test' under 'product' tab, receive 2 errors:

error 1: undefined symbols architecture i386: "_main", referenced from: start in crt1.o

error 2: ld: symbol(s) not found architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation)

i've tried cleaning build , using application tests nothing seems work. tutorials i've views on lynda seems not run these errors. adding target , linking current project seems needs happen in order start utilizing unit tests within xcode. these errors mean , refer to? input appreciated!

1) create new ios project 1 view controller type, , specify want unit tests @ creation, can see how xcode has wired - have reference.

2) create new project of type , name current 1 in temp folder. move original project file temp folder, move new 1 original 1 was, import files checking unit test target.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -