can't change the appearance of UITextField or UITextView in didFinishLaunchingWithOptions

Originator:flaviodsilverio
Number:rdar://6468254625 Date Originated:10/11/2017
Status:open Resolved:no
Product:iOS Product Version:11.1
Classification: Reproducible:yes
 
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Please file a radar on UIKit with this log if you see this assertion. selectorString = setKeyboardAppearance:, exercisedImplementations = {
    "setBackgroundColor:" =     (
    );
    "setKeyboardAppearance:" =     (
    );
}'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001156b61ab __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x0000000114125f41 objc_exception_throw + 48
	2   CoreFoundation                      0x00000001156bb372 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x000000011157a523 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 165
	4   UIKit                               0x000000011289f056 PushNextClassForSettingIMP + 511
	5   UIKit                               0x00000001128a874c __workaround10030904InvokeWithTarget_block_invoke + 26
	6   UIKit                               0x000000011203d9f6 +[UIView _performSystemAppearanceModifications:] + 66
	7   UIKit                               0x00000001128a8720 workaround10030904InvokeWithTarget + 776
	8   UIKit                               0x00000001128a2677 applyInvocationsToTarget + 1611
	9   UIKit                               0x00000001128a17ea +[_UIAppearance _applyInvocationsTo:window:matchingSelector:onlySystemInvocations:] + 1968
	10  UIKit                               0x00000001120699ce __88-[UIView(Internal) _performUpdatesForPossibleChangesOfIdiom:orScreen:traverseHierarchy:]_block_invoke + 63
	11  UIKit                               0x0000000112069959 -[UIView(Internal) _performUpdatesForPossibleChangesOfIdiom:orScreen:traverseHierarchy:] + 189
	12  UIKit                               0x000000011207d33b -[UIScrollView _didChangeFromIdiom:onScreen:traverseHierarchy:] + 54
	13  UIKit                               0x000000011206986f -[UIView(Internal) _didChangeFromIdiomOnScreen:traverseHierarchy:] + 181
	14  UIKit                               0x0000000112068d61 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1630
	15  UIKit                               0x00000001120826a0 -[UIScrollView _didMoveFromWindow:toWindow:] + 84
	16  UIKit                               0x0000000112068a14 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 785
	17  UIKit                               0x0000000112068a14 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 785
	18  UIKit                               0x000000011205b14c __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 151
	19  UIKit                               0x000000011205b033 -[UIView(Hierarchy) _postMovedFromSuperview:] + 828
	20  UIKit                               0x000000011206b94d -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1973
	21  UIKit                               0x0000000112112e77 -[UITransitionView transition:fromView:toView:removeFromView:] + 1541
	22  UIKit                               0x0000000112d52471 -[UIViewControllerBuiltinTransitionViewAnimator animateTransition:] + 2060
	23  UIKit                               0x0000000112119326 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 3003
	24  UIKit                               0x0000000111fad625 _runAfterCACommitDeferredBlocks + 318
	25  UIKit                               0x0000000111f9bbc5 _cleanUpAfterCAFlushAndRunDeferredBlocks + 280
	26  UIKit                               0x0000000111fbcd48 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 155
	27  CoreFoundation                      0x000000011565918c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	28  CoreFoundation                      0x000000011563d96b __CFRunLoopDoBlocks + 203
	29  CoreFoundation                      0x000000011563d144 __CFRunLoopRun + 1300
	30  CoreFoundation                      0x000000011563c9b9 CFRunLoopRunSpecific + 409
	31  GraphicsServices                    0x00000001192f09c6 GSEventRunModal + 62
	32  UIKit                               0x0000000111fa15e8 UIApplicationMain + 159
	33  NTT CMP                             0x000000010fc480c7 main + 151
	34  libdyld.dylib                       0x00000001169fed81 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

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!