xcode - Implementing Unit Testing with the iPhone SDK -


So I followed myself for the setup unit test on my app when I was a little stuck.

In this tutorial, the bullet shows this image in point 8, which is what I want when I am making it:

Although this is not when I create. I get this error message: Command / bin / fail with exit code 1 as well as error message unit test created

  PhaseScriptExecution "run script" "Build / 3D Pool.build/Debug-iphonesimulator/LogicTests.build/Script-1A6BA6AE10F28F40008AC2A8.sh": Then, when I first expand on error I get this CD "/ Users / James / Desktop / Five Year Plan / 3D Pool" Setenv action creation setenv ALTERNATE_GROUP employees ... setenv XCODE_VERSION_MAJOR 0300 setenv XCODE_VERSION_MINOR 0320 setenv YACC / Development R / usr / bin / yak / bin / sh -c "\" / user / james / desktop / five year plan / 3D pool / construction / 3D Pool.build/Debug-iphonesimulator/LogicTests.build/Script-1A6BA6AE10F28F40008AC2A8.sh \ "" /Developer/Tools/RunPlatformUnitTests.include1212: Note: Testing 'i386' /Developer/Tools/RunPlatformUnitTests.include:419 for Start Architecture: Note: Testing for architecture 'i386' is underway (GC Closed) ObjC [12589]: GC: GC is forced to shut because OBJC_DISABLE_GC is set to test suite '/ users / James / desktop / FYP / 3 De Pool / Build / Debug-IFoSimulator / Logic Tests. Oxest (Test) '2010-01-04 begins at 21:05:06 +0000 Test Sweet' Logic Tests' 2010-01-04 at 21:05:06 Started with the +0000 Test CA - '[Logic Tests TestFile]' / User / James / Desktop / FYP / 3D Pool / Logic Tests. M: 17: Error: - [Logic tests testfile]: Must fail to succeed. Test case '- [Logic Tests TestFile]' Failure (0.000 seconds) Test Sweet 'Logic Tests' closing 2010-01-04 21:05:06 +0000 0.000 (0.000) seconds killed in 1 test, 1 failure (0 Unexpected) Test Suite with 'Users / James / Desktop / Five Year Plan / 3D Pool / Construction / Debug-iphonesimulator / LogicTests.octest (Test)' in 2010-01 -04 21:05:06 +0000 0.000 (0.002) killed in seconds 1 test, with 1 failure (0 unexpected) /Developer/Tools/RunPlatformUnitTests.include 4848: error: and Failure test for 'i386' (GC off) /Developer/Tools/RunPlatformUnitTests.include: 462: Note: Complete testing for architecture 'i386' command / bin / sh failed with exit code 1  

Now this is very strange because this test is running (and as you can see my STFail firing) because if I add a separate test which does not give me any errors, the test is working fine Are there. But why am I getting this extra build fail?

It can also be noted that when the box should be downloaded when the solution / template is downloaded, I get the same error. I'm guessing that I have set something wrong here, but I have followed just a tutorial 100% correctly !! If someone helps me then I will be very grateful!

Thanks

According to edit, and some other websites, I'm not only going to get this problem. This is done in the same way because the release of ExCode 3.2, Apple Dev Center documents and tutorials are considered as pre-3.2.

However some people call it a known issue while others think that it was deliberate. I like both the extended console and the code message for one, and I definitely do not like the "command / bin / sh ..." error and actually think that they document such an update . Hopefully this will soon be resolved soon.

Update: It is confirmed that there has been a change since the release of Xcode 3.2.1.

This image: 3.2.1. This is from an older version (3.1.4):. (Project unchanged for both).

Edit: Image URL has been updated. 'Run script' under 'target' '/' your script target name '

 # Run the unit test in this test bundle. "$ {SYSTEM_DEVELOPER_DIR} / Tools / Run Usenet Tests" 1> /tmp/RunUnitTests.out 

Actually You Need to Attach

 1> /tmp/RunUnitTests.out 

which already exists


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -