1 Reply Latest reply on Oct 24, 2017 3:46 AM by lamtekko

    app issue after upgrading to ios11

    numairaarif Level 1

      Hello Everyone,

       

      I am in desperate need of help as I have already spent couple of days on the issue that I have been facing.

       

      I have a cordova/phonegap app which is running fine of both Android and iOS. However, since iOS 11 is released, whenever any of the input field is in focus the navigation text on the navbar like BACK and NEXT they disappear. THIS IS ONLY HAPPENING IN IOS 11.

       

      I also created a sample app to check if something is wrong particularly in project but in a simple HELLO WORLD app I am getting the same issue.

       

      Below is the console from XCODE that prints the following when emulating app on iPhone emulator with iOS 11. I am not getting any message when I am using an emulator with iOS version other than iOS 11.

       

      2017-10-03 13:20:23.101521-0600 CLTSMOBO F7[588:142151] [MC] Reading from public effective user settings. 2017-10-03 13:20:23.230306-0600 CLTSMOBO F7[588:142151] API error: <_UIKBCompatInputView: 0x101e50bb0; frame = (0 0; 0 0); layer = <CALayer: 0x1c4227540>> returned 0 width, assuming UIViewNoIntrinsicMetric 2017-10-03 13:20:23.230837-0600 CLTSMOBO F7[588:142151] API error: <_UIKBCompatInputView: 0x101e50bb0; frame = (0 0; 0 0); layer = <CALayer: 0x1c4227540>> returned 0 width, assuming UIViewNoIntrinsicMetric 2017-10-03 13:20:23.383411-0600 CLTSMOBO F7[588:142151] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x1c409eb90 h=-&- v=-&- UIToolbar:0x101d32830.width == _UIInputViewContent:0x101d31910.width (active)>", "<NSAutoresizingMaskLayoutConstraint:0x1c409ecd0 h=--& v=--& _UIInputViewContent:0x101d31910.width == 0 (active)>", "<NSLayoutConstraint:0x1c008c940 H:|-(0)-[_UIButtonBarStackView:0x101d35060] (active, names: '|':_UIToolbarContentView:0x101d32c70 )>", "<NSLayoutConstraint:0x1c008c990 _UIButtonBarStackView:0x101d35060.trailing == _UIToolbarContentView:0x101d32c70.trailing + 8 (active)>", "<NSLayoutConstraint:0x1c008c300 _UIToolbarContentView:0x101d32c70.trailing == UIToolbar:0x101d32830.trailing (active)>", "<NSLayoutConstraint:0x1c008c3a0 H:|-(0)-[_UIToolbarContentView:0x101d32c70] (active, names: '|':UIToolbar:0x101d32830 )>", "<NSLayoutConstraint:0x1c0096990 H:|-(0)-[_UIModernBarButton:0x101d55a10] (active, names: '|':_UIButtonBarButton:0x101d553d0 )>", "<NSLayoutConstraint:0x1c00969e0 H:[_UIModernBarButton:0x101d55a10]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x101d553d0 )>", "<NSLayoutConstraint:0x1c409d970 H:|-(8)-[_UIModernBarButton:0x101e6fb90'Done'] (active, names: '|':_UIButtonBarButton:0x101e6f7b0 )>", "<NSLayoutConstraint:0x1c409d9c0 H:[_UIModernBarButton:0x101e6fb90'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x101e6f7b0 )>", "<NSLayoutConstraint:0x1c409dd80 'UISV-canvas-connection' UILayoutGuide:0x1c01bab00'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x101d553d0.leading (active)>", "<NSLayoutConstraint:0x1c409e0f0 'UISV-canvas-connection' UILayoutGuide:0x1c01bab00'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x101e6f7b0.trailing (active)>", "<NSLayoutConstraint:0x1c409e140 'UISV-spacing' H:[_UIButtonBarButton:0x101d553d0]-(0)-[UIView:0x101d56b10] (active)>", "<NSLayoutConstraint:0x1c409e190 'UISV-spacing' H:[UIView:0x101d56b10]-(0)-[_UIButtonBarButton:0x101d56cf0] (active)>", "<NSLayoutConstraint:0x1c409e1e0 'UISV-spacing' H:[_UIButtonBarButton:0x101d56cf0]-(0)-[UIView:0x101e6f5d0] (active)>", "<NSLayoutConstraint:0x1c409e230 'UISV-spacing' H:[UIView:0x101e6f5d0]-(0)-[_UIButtonBarButton:0x101e6f7b0] (active)>", "<NSLayoutConstraint:0x1c008c7b0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x1c01bab00'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x101d35060 )>", "<NSLayoutConstraint:0x1c008c850 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1c01bab00'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x101d35060 )>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1c00969e0 H:[_UIModernBarButton:0x101d55a10]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x101d553d0 )> Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful. 2017-10-03 13:20:23.389540-0600 CLTSMOBO F7[588:142151] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x1c409eb90 h=-&- v=-&- UIToolbar:0x101d32830.width == _UIInputViewContent:0x101d31910.width (active)>", "<NSAutoresizingMaskLayoutConstraint:0x1c409ecd0 h=--& v=--& _UIInputViewContent:0x101d31910.width == 0 (active)>", "<NSLayoutConstraint:0x1c008c940 H:|-(0)-[_UIButtonBarStackView:0x101d35060] (active, names: '|':_UIToolbarContentView:0x101d32c70 )>", "<NSLayoutConstraint:0x1c008c990 _UIButtonBarStackView:0x101d35060.trailing == _UIToolbarContentView:0x101d32c70.trailing + 8 (active)>", "<NSLayoutConstraint:0x1c008c300 _UIToolbarContentView:0x101d32c70.trailing == UIToolbar:0x101d32830.trailing (active)>", "<NSLayoutConstraint:0x1c008c3a0 H:|-(0)-[_UIToolbarContentView:0x101d32c70] (active, names: '|':UIToolbar:0x101d32830 )>", "<NSLayoutConstraint:0x1c409ced0 H:|-(>=5)-[_UIModernBarButton:0x101d57330] (active, names: '|':_UIButtonBarButton:0x101d56cf0 )>", "<NSLayoutConstraint:0x1c409cf20 H:[_UIModernBarButton:0x101d57330]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x101d56cf0 )>", "<NSLayoutConstraint:0x1c409d970 H:|-(8)-[_UIModernBarButton:0x101e6fb90'Done'] (active, names: '|':_UIButtonBarButton:0x101e6f7b0 )>", "<NSLayoutConstraint:0x1c409d9c0 H:[_UIModernBarButton:0x101e6fb90'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x101e6f7b0 )>", "<NSLayoutConstraint:0x1c409dd80 'UISV-canvas-connection' UILayoutGuide:0x1c01bab00'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x101d553d0.leading (active)>", "<NSLayoutConstraint:0x1c409e0f0 'UISV-canvas-connection' UILayoutGuide:0x1c01bab00'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x101e6f7b0.trailing (active)>", "<NSLayoutConstraint:0x1c409e140 'UISV-spacing' H:[_UIButtonBarButton:0x101d553d0]-(0)-[UIView:0x101d56b10] (active)>", "<NSLayoutConstraint:0x1c409e190 'UISV-spacing' H:[UIView:0x101d56b10]-(0)-[_UIButtonBarButton:0x101d56cf0] (active)>", "<NSLayoutConstraint:0x1c409e1e0 'UISV-spacing' H:[_UIButtonBarButton:0x101d56cf0]-(0)-[UIView:0x101e6f5d0] (active)>", "<NSLayoutConstraint:0x1c409e230 'UISV-spacing' H:[UIView:0x101e6f5d0]-(0)-[_UIButtonBarButton:0x101e6f7b0] (active)>", "<NSLayoutConstraint:0x1c008c7b0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x1c01bab00'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x101d35060 )>", "<NSLayoutConstraint:0x1c008c850 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1c01bab00'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x101d35060 )>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1c409cf20 H:[_UIModernBarButton:0x101d57330]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x101d56cf0 )> Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

        • 1. Re: app issue after upgrading to ios11
          lamtekko Level 1

          Hi, numairaarif!

          This could happen because of changing UIBarButtonItem appearance.

          In my case the reason was setting title position for back button:

              [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60)

                                                                   forBarMetrics:UIBarMetricsDefault];

          It work perfectly on iOS version < 11.0.