ios - Unable to simultaneously satisfy constraints Warnings with AVPlayerViewController embedded in storyboard -


i'm trying set avplayerviewcontroller through storyboards embedding in separate view controller.

steps:

  1. create single view application in xcode.
  2. embed vc in navigation controller.
  3. add toolbar @ bottom.(pinned superview (leading, trailing, bottom layout guide, height(44)).
  4. add container view in parent view controller.(pinned superview (leading, trailing), top layout guide, toolbar top).
  5. remove default view controller comes container view.
  6. drag av player view controller object object library.
  7. connect embed segue container view av player view controller.

no code added.

this storyboard looks like:

enter image description here

view hierarchy:

enter image description here

everything runs fine: but problem is: run these warnings in debugger:

2015-09-30 12:58:35.904 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nsautoresizingmasklayoutconstraint:0x7f93259513b0 h=-&- v=-&- _uibackdropcontentview:0x7f9325860000.width == _uibackdropview:0x7f932585e990.width>",     "<nslayoutconstraint:0x7f932592bc70 h:|-(14)-[uilabel:0x7f9325925590'hi-speed scrubbing']   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592bcf0 h:[uilabel:0x7f9325925590'hi-speed scrubbing']-(14)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592b770 h:|-(0)-[_uibackdropview:0x7f932585e990]   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b7f0 h:[_uibackdropview:0x7f932585e990]-(0)-|   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b450 h:|-(0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b4d0 h:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932594aa10 'uiview-encapsulated-layout-width' h:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f932592bcf0 h:[uilabel:0x7f9325925590'hi-speed scrubbing']-(14)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 2015-09-30 12:58:35.905 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nsautoresizingmasklayoutconstraint:0x7f93259513b0 h=-&- v=-&- _uibackdropcontentview:0x7f9325860000.width == _uibackdropview:0x7f932585e990.width>",     "<nslayoutconstraint:0x7f932592bdd0 h:|-(14)-[uilabel:0x7f9325929bb0'slide finger a...']   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592be50 h:[uilabel:0x7f9325929bb0'slide finger a...']-(14)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592b770 h:|-(0)-[_uibackdropview:0x7f932585e990]   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b7f0 h:[_uibackdropview:0x7f932585e990]-(0)-|   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b450 h:|-(0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b4d0 h:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932594aa10 'uiview-encapsulated-layout-width' h:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f932592be50 h:[uilabel:0x7f9325929bb0'slide finger a...']-(14)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 2015-09-30 12:58:35.906 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nslayoutconstraint:0x7f932592b5e0 v:|-(>=0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b660 v:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592af50 v:[uiview:0x7f932585e830(44)]>",     "<nslayoutconstraint:0x7f9325952c30 'uiview-encapsulated-layout-height' v:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f932592b660 v:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 2015-09-30 12:58:35.907 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nsautoresizingmasklayoutconstraint:0x7f93259513b0 h=-&- v=-&- _uibackdropcontentview:0x7f9325860000.width == _uibackdropview:0x7f932585e990.width>",     "<nslayoutconstraint:0x7f932592ba00 h:|-(0)-[uiview:0x7f932585fbc0]   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592ba80 h:[uiview:0x7f932585fbc0]-(0)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592b770 h:|-(0)-[_uibackdropview:0x7f932585e990]   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b7f0 h:[_uibackdropview:0x7f932585e990]-(0)-|   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b450 h:|-(0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b4d0 h:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932582a040 h:|-(14)-[avbutton:0x7f93258609b0](ltr)   (names: '|':uiview:0x7f932585fbc0 )>",     "<nslayoutconstraint:0x7f9325829f90 h:[avbutton:0x7f93258609b0]-(15)-[uilabel:0x7f932347dc20'--:--'](ltr)>",     "<nslayoutconstraint:0x7f9325839550 h:[uilabel:0x7f932347dc20'--:--']-(12)-[avscrubber:0x7f93234a4350](ltr)>",     "<nslayoutconstraint:0x7f932585a2f0 avscrubber:0x7f93234a4350.right == uilabel:0x7f932583a470'--:--'.left - 12>",     "<nslayoutconstraint:0x7f932580b390 uilabel:0x7f932583a470'--:--'.right == avbutton:0x7f932585e480.left - 15>",     "<nslayoutconstraint:0x7f932586f490 avbutton:0x7f932585e480.right == avbutton:0x7f93234d1790.left - 10>",     "<nslayoutconstraint:0x7f932580b340 avbutton:0x7f93234d1790.right == avbutton:0x7f93234d6540.left - 10>",     "<nslayoutconstraint:0x7f932584c870 avbutton:0x7f93234d6540.right == uiview:0x7f932585fbc0.right - 14>",     "<nslayoutconstraint:0x7f932594aa10 'uiview-encapsulated-layout-width' h:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f9325829f90 h:[avbutton:0x7f93258609b0]-(15)-[uilabel:0x7f932347dc20'--:--'](ltr)>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 2015-09-30 12:58:35.909 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nsautoresizingmasklayoutconstraint:0x7f93259513b0 h=-&- v=-&- _uibackdropcontentview:0x7f9325860000.width == _uibackdropview:0x7f932585e990.width>",     "<nslayoutconstraint:0x7f932592ba00 h:|-(0)-[uiview:0x7f932585fbc0]   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592ba80 h:[uiview:0x7f932585fbc0]-(0)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592b770 h:|-(0)-[_uibackdropview:0x7f932585e990]   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b7f0 h:[_uibackdropview:0x7f932585e990]-(0)-|   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b450 h:|-(0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b4d0 h:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932582a040 h:|-(14)-[avbutton:0x7f93258609b0](ltr)   (names: '|':uiview:0x7f932585fbc0 )>",     "<nslayoutconstraint:0x7f932586f490 avbutton:0x7f932585e480.right == avbutton:0x7f93234d1790.left - 10>",     "<nslayoutconstraint:0x7f932580b340 avbutton:0x7f93234d1790.right == avbutton:0x7f93234d6540.left - 10>",     "<nslayoutconstraint:0x7f932584c870 avbutton:0x7f93234d6540.right == uiview:0x7f932585fbc0.right - 14>",     "<nslayoutconstraint:0x7f9325859740 h:[avbutton:0x7f93258609b0]-(>=15)-[uilabel:0x7f93234e53f0'live broadcast'](ltr)>",     "<nslayoutconstraint:0x7f932583bea0 uilabel:0x7f93234e53f0'live broadcast'.right <= avbutton:0x7f932585e480.left - 15>",     "<nslayoutconstraint:0x7f932594aa10 'uiview-encapsulated-layout-width' h:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f9325859740 h:[avbutton:0x7f93258609b0]-(>=15)-[uilabel:0x7f93234e53f0'live broadcast'](ltr)>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 2015-09-30 12:58:35.910 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nsautoresizingmasklayoutconstraint:0x7f93259513b0 h=-&- v=-&- _uibackdropcontentview:0x7f9325860000.width == _uibackdropview:0x7f932585e990.width>",     "<nslayoutconstraint:0x7f9323520650 h:|-(0)-[uiactivityindicatorview:0x7f93234e6ee0]   (names: '|':uiview:0x7f93234e6120 )>",     "<nslayoutconstraint:0x7f93235206a0 h:[uiactivityindicatorview:0x7f93234e6ee0]-(10)-[uilabel:0x7f93235203b0'loading\u2026']>",     "<nslayoutconstraint:0x7f9323520740 h:[uilabel:0x7f93235203b0'loading\u2026']-(0)-|   (names: '|':uiview:0x7f93234e6120 )>",     "<nslayoutconstraint:0x7f9323521f90 h:|-(>=0)-[uiview:0x7f93234e6120]   (names: '|':avloadingindicatorview:0x7f93234e5fb0 )>",     "<nslayoutconstraint:0x7f9323510da0 uiview:0x7f93234e6120.centerx == avloadingindicatorview:0x7f93234e5fb0.centerx>",     "<nslayoutconstraint:0x7f932592ba00 h:|-(0)-[uiview:0x7f932585fbc0]   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592ba80 h:[uiview:0x7f932585fbc0]-(0)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592b770 h:|-(0)-[_uibackdropview:0x7f932585e990]   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b7f0 h:[_uibackdropview:0x7f932585e990]-(0)-|   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b450 h:|-(0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b4d0 h:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932582a040 h:|-(14)-[avbutton:0x7f93258609b0](ltr)   (names: '|':uiview:0x7f932585fbc0 )>",     "<nslayoutconstraint:0x7f932586f490 avbutton:0x7f932585e480.right == avbutton:0x7f93234d1790.left - 10>",     "<nslayoutconstraint:0x7f932580b340 avbutton:0x7f93234d1790.right == avbutton:0x7f93234d6540.left - 10>",     "<nslayoutconstraint:0x7f932584c870 avbutton:0x7f93234d6540.right == uiview:0x7f932585fbc0.right - 14>",     "<nslayoutconstraint:0x7f932583bbc0 h:[avbutton:0x7f93258609b0]-(>=15)-[avloadingindicatorview:0x7f93234e5fb0](ltr)>",     "<nslayoutconstraint:0x7f932583bc10 avloadingindicatorview:0x7f93234e5fb0.right <= avbutton:0x7f932585e480.left - 15>",     "<nslayoutconstraint:0x7f932594aa10 'uiview-encapsulated-layout-width' h:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f93235206a0 h:[uiactivityindicatorview:0x7f93234e6ee0]-(10)-[uilabel:0x7f93235203b0'loading…']>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 2015-09-30 12:58:35.912 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nsautoresizingmasklayoutconstraint:0x7f93259513b0 h=-&- v=-&- _uibackdropcontentview:0x7f9325860000.width == _uibackdropview:0x7f932585e990.width>",     "<nslayoutconstraint:0x7f9323521f90 h:|-(>=0)-[uiview:0x7f93234e6120]   (names: '|':avloadingindicatorview:0x7f93234e5fb0 )>",     "<nslayoutconstraint:0x7f9323510da0 uiview:0x7f93234e6120.centerx == avloadingindicatorview:0x7f93234e5fb0.centerx>",     "<nslayoutconstraint:0x7f932592ba00 h:|-(0)-[uiview:0x7f932585fbc0]   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592ba80 h:[uiview:0x7f932585fbc0]-(0)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592b770 h:|-(0)-[_uibackdropview:0x7f932585e990]   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b7f0 h:[_uibackdropview:0x7f932585e990]-(0)-|   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b450 h:|-(0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b4d0 h:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932582a040 h:|-(14)-[avbutton:0x7f93258609b0](ltr)   (names: '|':uiview:0x7f932585fbc0 )>",     "<nslayoutconstraint:0x7f932586f490 avbutton:0x7f932585e480.right == avbutton:0x7f93234d1790.left - 10>",     "<nslayoutconstraint:0x7f932580b340 avbutton:0x7f93234d1790.right == avbutton:0x7f93234d6540.left - 10>",     "<nslayoutconstraint:0x7f932584c870 avbutton:0x7f93234d6540.right == uiview:0x7f932585fbc0.right - 14>",     "<nslayoutconstraint:0x7f932583bbc0 h:[avbutton:0x7f93258609b0]-(>=15)-[avloadingindicatorview:0x7f93234e5fb0](ltr)>",     "<nslayoutconstraint:0x7f932583bc10 avloadingindicatorview:0x7f93234e5fb0.right <= avbutton:0x7f932585e480.left - 15>",     "<nslayoutconstraint:0x7f932594aa10 'uiview-encapsulated-layout-width' h:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f9323510da0 uiview:0x7f93234e6120.centerx == avloadingindicatorview:0x7f93234e5fb0.centerx>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 2015-09-30 12:58:35.912 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nsautoresizingmasklayoutconstraint:0x7f93259513b0 h=-&- v=-&- _uibackdropcontentview:0x7f9325860000.width == _uibackdropview:0x7f932585e990.width>",     "<nslayoutconstraint:0x7f9323521f90 h:|-(>=0)-[uiview:0x7f93234e6120]   (names: '|':avloadingindicatorview:0x7f93234e5fb0 )>",     "<nslayoutconstraint:0x7f9323510d10 h:[uiview:0x7f93234e6120]-(>=0)-|   (names: '|':avloadingindicatorview:0x7f93234e5fb0 )>",     "<nslayoutconstraint:0x7f932592ba00 h:|-(0)-[uiview:0x7f932585fbc0]   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592ba80 h:[uiview:0x7f932585fbc0]-(0)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592b770 h:|-(0)-[_uibackdropview:0x7f932585e990]   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b7f0 h:[_uibackdropview:0x7f932585e990]-(0)-|   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b450 h:|-(0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b4d0 h:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932582a040 h:|-(14)-[avbutton:0x7f93258609b0](ltr)   (names: '|':uiview:0x7f932585fbc0 )>",     "<nslayoutconstraint:0x7f932586f490 avbutton:0x7f932585e480.right == avbutton:0x7f93234d1790.left - 10>",     "<nslayoutconstraint:0x7f932580b340 avbutton:0x7f93234d1790.right == avbutton:0x7f93234d6540.left - 10>",     "<nslayoutconstraint:0x7f932584c870 avbutton:0x7f93234d6540.right == uiview:0x7f932585fbc0.right - 14>",     "<nslayoutconstraint:0x7f932583bbc0 h:[avbutton:0x7f93258609b0]-(>=15)-[avloadingindicatorview:0x7f93234e5fb0](ltr)>",     "<nslayoutconstraint:0x7f932583bc10 avloadingindicatorview:0x7f93234e5fb0.right <= avbutton:0x7f932585e480.left - 15>",     "<nslayoutconstraint:0x7f932594aa10 'uiview-encapsulated-layout-width' h:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f9323510d10 h:[uiview:0x7f93234e6120]-(>=0)-|   (names: '|':avloadingindicatorview:0x7f93234e5fb0 )>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 2015-09-30 12:58:35.913 avplayertest[9352:446772] unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nsautoresizingmasklayoutconstraint:0x7f93259513b0 h=-&- v=-&- _uibackdropcontentview:0x7f9325860000.width == _uibackdropview:0x7f932585e990.width>",     "<nslayoutconstraint:0x7f932592ba00 h:|-(0)-[uiview:0x7f932585fbc0]   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592ba80 h:[uiview:0x7f932585fbc0]-(0)-|   (names: '|':_uibackdropcontentview:0x7f9325860000 )>",     "<nslayoutconstraint:0x7f932592b770 h:|-(0)-[_uibackdropview:0x7f932585e990]   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b7f0 h:[_uibackdropview:0x7f932585e990]-(0)-|   (names: '|':uiview:0x7f932585e830 )>",     "<nslayoutconstraint:0x7f932592b450 h:|-(0)-[uiview:0x7f932585e830]   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932592b4d0 h:[uiview:0x7f932585e830]-(0)-|   (names: '|':avalphaupdatingview:0x7f932585e310 )>",     "<nslayoutconstraint:0x7f932582a040 h:|-(14)-[avbutton:0x7f93258609b0](ltr)   (names: '|':uiview:0x7f932585fbc0 )>",     "<nslayoutconstraint:0x7f932586f490 avbutton:0x7f932585e480.right == avbutton:0x7f93234d1790.left - 10>",     "<nslayoutconstraint:0x7f932580b340 avbutton:0x7f93234d1790.right == avbutton:0x7f93234d6540.left - 10>",     "<nslayoutconstraint:0x7f932584c870 avbutton:0x7f93234d6540.right == uiview:0x7f932585fbc0.right - 14>",     "<nslayoutconstraint:0x7f932583bbc0 h:[avbutton:0x7f93258609b0]-(>=15)-[avloadingindicatorview:0x7f93234e5fb0](ltr)>",     "<nslayoutconstraint:0x7f932583bc10 avloadingindicatorview:0x7f93234e5fb0.right <= avbutton:0x7f932585e480.left - 15>",     "<nslayoutconstraint:0x7f932594aa10 'uiview-encapsulated-layout-width' h:[avalphaupdatingview:0x7f932585e310(0)]>" )  attempt recover breaking constraint  <nslayoutconstraint:0x7f932583bbc0 h:[avbutton:0x7f93258609b0]-(>=15)-[avloadingindicatorview:0x7f93234e5fb0](ltr)>  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful. 

sorry long log, of comes @ once including it. missing? auto layout working great. on rotation. why seeing these warnings?

added sample project

p.s.: using xcode version 7.0

update

unchecking shows playback controls on avplayerviewcontroller in attributes inspector fixes somehow , see no warnings. need controls. seems more , more bug.

in fact, think it's bug on apple side.

i found workaround : set showsplaybackcontrols yes after avplayerviewcontroller.player have been set.

i modify sample following lines , no more constraint error appears :

@interface viewcontroller ()  @property(weak, nonatomic) avplayerviewcontroller * playerviewcontroller;   @end  @implementation viewcontroller  - (void)viewdidload {     [super viewdidload];      nsstring *path = [[nsbundle mainbundle] pathforresource:@"test" oftype:@"mp4"];     nsurl *url = [[nsurl alloc] initfileurlwithpath: path];     avplayer * player = [avplayer playerwithurl:url];      self.playerviewcontroller.player = player;     self.playerviewcontroller.showsplaybackcontrols = yes; }   - (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender {     if ([segue.identifier isequaltostring:@"avplayersegue"]) {         self.playerviewcontroller = segue.destinationviewcontroller;     } }   @end 

please note file test.mp4 have been added project.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -