Xcode 5更新后RunUnitTests错误
发布时间:2020-12-14 19:27:27 所属栏目:百科 来源:网络整理
导读:我所做的只是将项目更新为 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 t
我所做的只是将项目更新为
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已过时.要为目标运行单元测试,请使用Xcode IDE中的Test scheme操作和xcodebuild中的测试操作.”突出显示为红色.我搜索了这个问题,但找不到任何答案.可能是什么问题,我该如何解决? 解决方法
您最有可能将构建设置Test After Build设置为YES. Xcode 5不支持Test After Build构建设置.将Build After Build设置为NO,错误应该消失.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |