2012-02-10 51 views
2

我的应用程序建立正常,当我运行它和单元测试精细建以及连接错误的单元测试的Xcode 4

单元测试失败(应用程序仍然罚款)时,我加入了一些代码CGAffineTransform

行为上是相同的模拟器和设备

错误消息:

Undefined symbols for architecture i386: 
    "_CGAffineTransformMakeTranslation", referenced from: 
     -[PhysicsObject hasPoint:] in PhysicsObject-23B4A02B8F0621AD.o 
    "_CGAffineTransformMakeRotation", referenced from: 
     -[PhysicsObject hasPoint:] in PhysicsObject-23B4A02B8F0621AD.o 
    "_CGAffineTransformConcat", referenced from: 
     -[PhysicsObject hasPoint:] in PhysicsObject-23B4A02B8F0621AD.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我试图从

建议

http://twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/ http://sealedabstract.com/code/tired-of-getting-mach-o-linker-errors-when-unit-testing/ Apple Mach-O Linker Error when compiling for device

,并没有什么工作:(我怀疑这是关系到特别是不被人发现的框架。我似乎不能确定哪些。非常感谢帮助。

回答

3

前缀_CG是CoreGraphics.framework