square/KIF — Issue #96: Supported iOS versions?
Author: sgbkgb
Created: 2011-11-25 11:58:58+00:00
State: open

Hi,

When I run my tests in iOS 4.2 and earlier, I get crashes due to a deallocated UINavigationItem receiving a message:

```-[UINavigationItem safeValueForKey:]: message sent to deallocated instance 0x11afab80```

The stack trace is:

```
0 CoreFoundation ___forwarding___
1 CoreFoundation _CF_forwarding_prep_0
2 UIKit -[UINavigationItemButtonViewAccessibility(SafeCategory) accessibilityTraits]
3 UIAccessibility -[NSObject(NSObjectAccessibility) accessibilityAttributeValue:]
4 UIAccessibility _copyAttributeValueCallback
5 AXRuntime _AXXMIGCopyAttributeValue
6 AXRuntime _XCopyAttributeValue
7 AXRuntime mshMIGPerform
8 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
9 CoreFoundation __CFRunLoopDoSource1
10 CoreFoundation __CFRunLoopRun
11 CoreFoundation CFRunLoopRunSpecific
12 CoreFoundation CFRunLoopRunInMode
13 GraphicsServices GSEventRunModal
14 GraphicsServices GSEventRun
15 UIKit UIApplicationMain
16 MyApp Functional Tests main [myapp]/main.m:14
17 MyApp Functional Tests start
```

in iOS 4.3 and later, this doesn't happen. I believe, because this is happening in the accessibility code, that it's coming from KIF - though I'm happy to be corrected. My question is: what versions is KIF supposed to support? If it's 4.3 and later, then could you update the front page to say so?