Sar*_*aya 5 xcode unit-testing xcode5
我所做的只是将项目更新为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
Run Code Online (Sandbox Code Playgroud)
哪里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."突出显示为红色.我搜索了这个问题,但找不到任何答案.可能是什么问题,我该如何解决?
您最有可能将构建设置Test After Build设置为YES.Xcode 5不支持Test After Build构建设置.将Build After Build设置为NO,错误应该消失.
| 归档时间: |
|
| 查看次数: |
3528 次 |
| 最近记录: |