Xcode 5 更新后的 RunUnitTests 错误 [英] RunUnitTests error after Xcode 5 update

查看:25
本文介绍了Xcode 5 更新后的 RunUnitTests 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

All I did was to update the project to Xcode 5. Now when I try to run tests I am getting this error

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. 要为您的目标运行单元测试,请使用 Xcode IDE 中的测试方案操作和 xcodebuild 中的测试操作." 突出显示为红色.我用谷歌搜索了这个问题,但找不到任何答案.可能是什么问题,我该如何解决?

Where 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." is highlighted red. I googled this problem but could not find any answer. What could be the problem and how can I solve it?

推荐答案

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

You most likely have the build setting Test After Build set to YES. Xcode 5 does not support the Test After Build build setting. Set Test After Build to NO and the error should go away.

这篇关于Xcode 5 更新后的 RunUnitTests 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆