XCTest exception when using keyValueObservingExpectationForObject:keyPath:handler:

Originator:cedric.luthi
Number:rdar://21459715 Date Originated:19-Jun-2015 03:17 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.3
Classification:Crash/Hang/Data Loss Reproducible:Sometimes
 
XCTest may throw an exception when using keyValueObservingExpectationForObject:keyPath:handler:

caught "NSRangeException", "Cannot remove an observer <_XCKVOExpectation 0x1001846c0> for the key path […]

Full explanation of the problem with proposed solution here:
http://stackoverflow.com/questions/30938525/xctest-exception-when-using-keyvalueobservingexpectationforobjectkeypathhandle

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!