gpt4 book ai didi

ios - 使用 Xcode 进行逻辑单元测试 - DerivedData 为空

转载 作者:行者123 更新时间:2023-11-29 11:52:56 24 4
gpt4 key购买 nike

我正在为我们现有的应用编写一些逻辑单元测试。当我运行一个测试用例时,我得到了,

ld: warning: directory not found for option '-L/Users/chinthaka/Library/Developer/Xcode/DerivedData/XXXXX-cuqxyxigigmngzcvxbguttpluqva/Build/Products/Debug-iphonesimulator/AFNetworking' ld: library not found for -lAFNetworking clang: error: linker command failed with exit code 1 (use -v to see invocation)

然后我检查了 DerivedData 目录,它只包含 XXXXXUnitTests.xctest 文件。

enter image description here

其他链接器标志包含 -ObjC 和 -l(AFNetworking)。

框架搜索路径如附件图片所示,它也包含一些 pod。 (但 AFNetworking 不在其中。)

enter image description here

库搜索路径是这样的,

enter image description here

还有什么我错过检查或配置的吗?请帮忙。

最佳答案

将测试目标的“仅构建事件架构”设置设置为否后,我能够解决此问题。

此外,iOS Development Target 是 iOS 9.3,它必须是 iOS 8.0。

关于ios - 使用 Xcode 进行逻辑单元测试 - DerivedData 为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40363929/

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