ios - XCode8, Swift 2.3 - dequeue reusableCellWithIdentifier breaking with Accessibility Inspector on -


device/environment information: i'm running on mbp xcode 8 gm, building on swift 2.3 ipad air 2 simulator running ios 9.2. same behavior manifests on other simulators, , did not manifest on xcode 7.

more curiously, had 4 consecutive passes of test before first failure, , has failed consistently (n>20) since. i'm not sure changed, since working on different issue, plausibly have purged deriveddata and/or pods , rebuilt.

in app, there's commentsviewcontroller dequeues commentstableviewcells in totally standard way nib that's registered variable (reuseidentifier) used dequeue cells. file has not changed in substantial amount of time.

this registration of nib:

[self.tableview registernib:[uinib nibwithnibname:@"commentstableviewcell" bundle:nil] forcellreuseidentifier:reuseidentifier]; 

and dequeueing of tableviewcell:

commentstableviewcell *cell = [tableview dequeuereusablecellwithidentifier:reuseidentifier forindexpath:indexpath]; 

when running app normally, totally fine. however, if xcuitest framework asked take snapshot of ui hierarchy or accessibility inspector turned on in simulator , dequeued cell interacted with, app crashes following message in log, name of app removed:

assertion failure in -[uitableview dequeuereusablecellwithidentifier:forindexpath:], /buildroot/library/caches/com.apple.xbs/sources/uikit_sim/uikit-3512.30.14/uitableview.m:6564 2016-09-12 16:22:28.666 [26852:512611] * terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'unable dequeue cell identifier comment - must register nib or class identifier or connect prototype cell in storyboard' * first throw call stack: ( 0 corefoundation 0x000000010a323e65 exceptionpreprocess + 165 1 libobjc.a.dylib 0x0000000109d9cdeb objc_exception_throw + 48 2 corefoundation 0x000000010a323cca +[nsexception raise:format:arguments:] + 106 3 foundation 0x0000000104c534de -[nsassertionhandler handlefailureinmethod:object:file:linenumber:description:] + 198 4 uikit 0x0000000107b11a8d -[uitableview dequeuereusablecellwithidentifier:forindexpath:] + 266 5 uikit 0x0000000119bd41ba -[uitableviewaccessibility dequeuereusablecellwithidentifier:forindexpath:] + 183 6 0x0000000101ae1766 -[commentsviewcontroller tableview:cellforrowatindexpath:] + 214 7 uikit 0x0000000107b24e43 -[uitableview _createpreparedcellforglobalrow:withindexpath:willdisplay:] + 766 8 uikit 0x0000000107b24f7b -[uitableview _createpreparedcellforglobalrow:willdisplay:] + 74 9 uikit 0x0000000107af9a39 -[uitableview _updatevisiblecellsnow:isrecursive:] + 2996 10 uikit 0x0000000107b0b930 -[uitableview _visiblecells] + 27 11 uikit 0x0000000119bd361a -[uitableviewaccessibility accessibilityelementshidden] + 197 12 mapkitframework 0x000000011bd8d2a1 -[mkuitableviewaccessibility accessibilityelementshidden] + 64 13 uiaccessibility 0x0000000119d4c103 -[uiview(uiaccessibilityprivate) _accessibilityviewisvisibleignoringaxoverrides:] + 74 14 uiaccessibility 0x0000000119d2838e -[uiview(uiaccessibilityelementtraversal) _accessibilityshouldbeprocessed:] + 32 15 uiaccessibility 0x0000000119d277fd -[uiview(uiaccessibilityelementtraversal) _accessibilitysubviewsforgettingelementswithoptions:] + 1950 16 uiaccessibility 0x0000000119d27ce8 -[uiview(uiaccessibilityelementtraversal) _addaccessibilityelementsandorderedcontainerswithoptions:tocollection:] + 632 17 uiaccessibility 0x0000000119d27d5a -[uiview(uiaccessibilityelementtraversal) _addaccessibilityelementsandorderedcontainerswithoptions:tocollection:] + 746 18 uiaccessibility 0x0000000119d27d5a -[uiview(uiaccessibilityelementtraversal) _addaccessibilityelementsandorderedcontainerswithoptions:tocollection:] + 746 19 uiaccessibility 0x0000000119d27d5a -[uiview(uiaccessibilityelementtraversal) _addaccessibilityelementsandorderedcontainerswithoptions:tocollection:] + 746 20 uiaccessibility 0x0000000119d27d5a -[uiview(uiaccessibilityelementtraversal) _addaccessibilityelementsandorderedcontainerswithoptions:tocollection:] + 746 21 uiaccessibility 0x0000000119d27d5a -[uiview(uiaccessibilityelementtraversal) _addaccessibilityelementsandorderedcontainerswithoptions:tocollection:] + 746 22 uiaccessibility 0x0000000119d27d5a -[uiview(uiaccessibilityelementtraversal) _addaccessibilityelementsandorderedcontainerswithoptions:tocollection:] + 746 23 uiaccessibility 0x0000000119d28178 +[uiview(uiaccessibilityelementtraversal) _accessibilityelementsandcontainersdescendingfromviews:options:sorted:] + 399 24 uiaccessibility 0x0000000119d28570 -[uiapplication(uiaccessibilityelementtraversal) _accessibilityviewchildrenwithoptions:referencewindow:] + 116 25 uikit 0x0000000119bc8765 -[uiapplicationaccessibility _accessibilitysummaryelement] + 90 26 uikit 0x0000000119bc5d51 -[uiapplicationaccessibility _accessibilityresponderelement:] + 1852 27 uikit 0x0000000119c0b939 -[uiresponder(uitextaccessibilityutilities) _accessibilityhastextoperations] + 31 28 uiaccessibility 0x0000000119d3546d -[nsobject(axprivcategory) accessibilityattributevalue:] + 4378 29 uiaccessibility 0x0000000119d4ee9d _accessibilityattributesforobject + 333 30 uiaccessibility 0x0000000119d4ea77 -[nsobject(uiaccessibilityautomation) _accessibilityusertestingsnapshotdescendantswithattributes:maxdepth:maxchildren:maxarraycount:] + 553 31 uiaccessibility 0x0000000119d4fa1a -[nsobject(uiaccessibilityautomation) _accessibilityusertestingsnapshotwithoptions:] + 594 32 uiaccessibility 0x0000000119d3308f -[nsobject(axprivcategory) accessibilityattributevalue:forparameter:] + 3533 33 uiaccessibility 0x0000000119d20393 _copyparameterizedattributevaluecallback + 176 34 axruntime 0x0000000119db2529 _axxmigcopyparameterizedattributevalue + 312 35 axruntime 0x0000000119dad02f _xcopyparameterizedattributevalue + 466 36 axruntime 0x0000000119dba3a7 mshmigperform + 235 37 corefoundation 0x000000010a24fca9 __cfrunloop_is_calling_out_to_a_source1_perform_function + 41 38 corefoundation 0x000000010a24fc19 __cfrunloopdosource1 + 473 39 corefoundation 0x000000010a245390 __cfrunlooprun + 2272 40 corefoundation 0x000000010a244828 cfrunlooprunspecific + 488 41 graphicsservices 0x000000010cab5ad2 gseventrunmodal + 161 42 uikit 0x00000001079cb610 uiapplicationmain + 171 43 0x0000000101883f2a main + 2234 44 libdyld.dylib 0x000000010aef292d start + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception

this awkward, because have tests passed morning , don't pass. i've done search similar problems they're @ minimum several years old , answers revolve around issues uinibs or ib don't exist or workarounds involve ib ui components don't exist anymore (well, or assume nib isn't registered).

so, question is, why crashing when accessibility hierarchy being interacted with, , how can fix it, tests can go working?

did try change nil in [self.tableview registernib:[uinib nibwithnibname:@"commentstableviewcell" bundle:nil] forcellreuseidentifier:reuseidentifier]; [nsbundle mainbundle]?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -