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
,並沒有什麼工作:(我懷疑這是關係到特別是不被人發現的框架。我似乎不能確定哪些。非常感謝幫助。