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:
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
Post a Comment