gpt4 book ai didi

xcode - Xcode 5 更新后的 RunUnitTests 错误

转载 作者:行者123 更新时间:2023-12-04 17:22:28 25 4
gpt4 key购买 nike

我所做的只是将项目更新到 Xcode 5。现在当我尝试运行测试时出现此错误

if [ "${TEST_AFTER_BUILD}" = "YES" ]; then
Error ${LINENO} "RunUnitTests is obsolete. To run unit tests for your target, use the Test scheme action in the Xcode IDE and the test action in xcodebuild."
Note ${LINENO} "You can remove the Run Script build phase that invokes RunUnitTests from your unit test bundle target."
# Exit with EX_UNAVAILABLE to indicate that this subsystem is unavailable.
exit 69
fi

哪里 Error ${LINENO} "RunUnitTests is obsolete. To run unit tests for your target, use the Test scheme action in the Xcode IDE and the test action in xcodebuild."以红色突出显示。我用谷歌搜索了这个问题,但找不到任何答案。可能是什么问题,我该如何解决?

最佳答案

您很可能将build设置“构建后测试”设置为"is"。 Xcode 5 不支持 Test After Build build设置。将“构建后测试”设置为“否”,错误应该会消失。

关于xcode - Xcode 5 更新后的 RunUnitTests 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18953044/

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