gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 11:06:30 25 4
gpt4 key购买 nike

我的问题很简单,就是尝试使用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标志是罪魁祸首。我不认为单元测试包同意它。

关于xcode - 使用Xcode测试为Objective-C++代码库设置单元,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5239998/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com