ios - Xcode 6.1.1 xctest release -
i create new project , set (run) build configuration release,the issue.
this code.
#import "viewcontroller.h" @interface testtests : xctestcase @end @implementation testtests - (void)testexample { viewcontroller *vc = [[viewcontroller alloc] init]; xctassertnotnil(vc); } @end
issue
undefined symbols architecture x86_64: "_objc_class_$_viewcontroller", referenced from: objc-class-ref in testtests.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation)
oups, sorry… missing link corefoundation framework!
libs += corefoundation
Comments
Post a Comment