SenTestCase in Xcode 3.2 and XCBuildLogCommandInvocationSection Errors

前端 未结 4 1855
醉酒成梦
醉酒成梦 2020-12-08 08:35

I have a set of SenTestCase that are causing issues in XCode 3.2.4. When attempting to compile (with a very basic STFail(@"");) the following compiler errors occur

相关标签:
4条回答
  • 2020-12-08 09:25

    I had the same problem with xcode 3.2.3 and iPad. This one helps me to solve it:

    Project -> Edit Project Settings -> Build -> Base SDK = iPhone Device 4.0
    Project -> Edit Project Settings -> Build -> iPhone OS Deployment Target = iPhone OS 3.2
    
    0 讨论(0)
  • 2020-12-08 09:26

    It seems to be a regression with some part of the reporting code not respecting timezone issues. The output is tagged as ending before it began, so gets very confused and chokes.

    One work-around, that I found somewhere on Google, is to change the Run Script stage of the target.

    Change

    "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 
    

    to

    "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 1> /tmp/RunUnitTests.out 
    

    It’s working round the issue, rather than solving it, but does work.

    0 讨论(0)
  • 2020-12-08 09:28

    This appears to be fixed (finally!) in the 4.2 SDK.

    0 讨论(0)
  • 2020-12-08 09:37

    I had the same issue when developing an iPad app. Try changing the Base SDK of your test target from iPhone Device 3.2 to iPhone Device 4.0.

    0 讨论(0)
提交回复
热议问题