我只是想尝试我的第一个XCTestCase实现,一切都很好,但是当我执行测试用例时,我面临"构建失败":
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Node", referenced from:
objc-class-ref in Test01.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
它肯定是一个愚蠢的配置(编译/链接)错误,但我没有找到自己的解决方案或现有的帖子:-(
在此先感谢任何帮助.
祝你有美好的一天.
Dexes
这是我的Xcode项目的ZIP文件:https://www.dropbox.com/s/5f2buy3iukuwhde/Process.zip
而完整的错误是:
Build target Process
ProcessPCH /Users/dexes/Library/Developer/Xcode/DerivedData/Process-acrxpeunwuuvgebwfabvcnxpdwyl/Build/Intermediates/PrecompiledHeaders/Process-Prefix-dtfmmncegmgoctfiibxoezkmzpvp/Process-Prefix.pch.pch Process/Process-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/dexes/Dropbox/XCode/Process
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses …Run Code Online (Sandbox Code Playgroud)