xcode - 使用Xcode测试为Objective-C++代码库设置单元

我的问题很简单,就是尝试使用Objective-C++运行测试包时遇到错误。

这是我看到的特定错误:

/iOS4.2/Tools/RunPlatformUnitTests.include: line 415: 38013 Trace/BPT trap          "${THIN_TEST_RIG}" "${OTHER_TEST_FLAGS}" "${TEST_BUNDLE_PATH}"
/iOS4.2/Tools/RunPlatformUnitTests.include:451: error: Test rig '/iOS4.2/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/Developer/usr/bin/otest' exited abnormally with code 133 (it may have crashed).

我在测试包中设置了一些链接器标志,包括以下内容:
-lxml2
-all_load

我知道这里的信息有点稀疏,我的目标配置很大,在这里可能会给您带来更多帮助,但是我应该立即检查/确认一下吗?

最佳答案

单元测试中的-all_load标志是罪魁祸首。我不认为单元测试包同意它。

https://stackoverflow.com/questions/5239998/

相关文章:

c++ - Netbeans 7.0编译器错误

gcc - C程序编译错误

java - 找不到符号—符号: method lastIndexOf(java.lang.Stri

matlab - Matlab mex中状态码2的构建错误

ios - 从GCC 4.2切换到LLVM 2.0时 ''中的 '-std='值无效

c# - Visual C#中的奇怪编译错误

c++ - C++ map : expected initializer before ‘<’ to

c++ - C++中的模板类

visual-studio-2010 - Visual Studio/TFS 2010/获取最新版本

c# - 添加动态评级控件时出现奇怪的编译问题