iPhone OCUnit, exited abnormally with code 139, what is it?

后端 未结 2 1464
心在旅途
心在旅途 2021-01-21 08:38

iPhone sdk 3.1.2, xcode 3.1.4, mac os x 10.5.8,

I\'m a newbie using OCUnit comes with iphone sdk. The only error i get is:

error: Test rig \'/Developer/Platforms

2条回答
  •  梦谈多话
    2021-01-21 09:27

    When OCUnit crashes with code 139 it really could be anything. Typically this error code occurs because it's a runtime error, not a compile time error. So, you're doing something that the compiler is fine with, but at runtime it fails.

    Here are some things to take a look at when this happens, but it really could be more complex than this.
    1. Check your dealloc/alloc areas make sure that these objects really do exist/are being called correctly.
    2. Check your spelling, typos, etc... (two variables similarly named, but wrongly used? casts?)
    3. Try to isolate your tests, meaning, work through your tests to find out which one fails. OCUnit is crashing due to a problem with your code.
    4. If all else fails let the code target the simulator instead of OCUnit, you should get more meaningful slack traces that way.

提交回复
热议问题