猿问

Failed to inherit CoreMedia permissions from 6708: (null)

添加一个App Extensions,类型为Widget,什么都没改,直接运行报下面的错误:

Failed to inherit CoreMedia permissions from 6708: (null)



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) 

(

    "<NSLayoutConstraint:0x7fc0ba43b8c0 V:[_UILayoutGuide:0x7fc0ba43a5d0]-(NSSpace(8))-[UILabel:0x7fc0ba5471f0'Hello World']>",

    "<NSLayoutConstraint:0x7fc0ba43b910 V:[UILabel:0x7fc0ba5471f0'Hello World']-(NSSpace(8))-[_UILayoutGuide:0x7fc0ba43b220]>",

    "<_UILayoutSupportConstraint:0x7fc0ba439cb0 V:[_UILayoutGuide:0x7fc0ba43a5d0(0)]>",

    "<_UILayoutSupportConstraint:0x7fc0ba439bd0 V:|-(0)-[_UILayoutGuide:0x7fc0ba43a5d0]   (Names: '|':UIView:0x7fc0ba546f20 )>",

    "<_UILayoutSupportConstraint:0x7fc0ba43afb0 V:[_UILayoutGuide:0x7fc0ba43b220(0)]>",

    "<_UILayoutSupportConstraint:0x7fc0ba43af50 _UILayoutGuide:0x7fc0ba43b220.bottom == UIView:0x7fc0ba546f20.bottom>",

    "<NSLayoutConstraint:0x7fc0ba43ea60 'UIView-Encapsulated-Layout-Height' V:[UIView:0x7fc0ba546f20(0)]>"

)


Will attempt to recover by breaking constraint 

<NSLayoutConstraint:0x7fc0ba43b910 V:[UILabel:0x7fc0ba5471f0'Hello World']-(NSSpace(8))-[_UILayoutGuide:0x7fc0ba43b220]>


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.



Failed to inherit CoreMedia permissions from 6708: (null)

Program ended with exit code: 9


一开始“Hello World”在widget的垂直中心,关闭通知中心,再次下拉打开通知中心,“Hello World”的位置移到了最上面

Ginger0112
浏览 9140回答 0
0回答
随时随地看视频慕课网APP

相关分类

iOS
我要回答