gpt4 book ai didi

ios - Swift youtube ios helper 全屏抛出异常

转载 作者:行者123 更新时间:2023-11-30 11:42:56 30 4
gpt4 key购买 nike

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.
2018-03-06 18:30:19.141870+0100 Myapp[1125:200711] *** Assertion failure in -[UIView _nsis_center:bounds:inEngine:forLayoutGuide:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3698.21.8/NSLayoutConstraint_UIKitAdditions.m:3322
2018-03-06 18:30:19.142162+0100 Myapp[1125:200711] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error in compatibility flow'
*** First throw call stack:
(0x181f31d04 0x181180528 0x181f31bd8 0x1828c1c24 0x18be652a4 0x18c0bed04 0x18c0beee4 0x193a6f418 0x193a6ee20 0x18b3662f8 0x185f1fec8 0x185f23fa8 0x18b37b09c 0x18adf790c 0x18adf3c38 0x106db549c 0x106db545c 0x106dba050 0x181ed9eb0 0x181ed7a8c 0x181df7fb8 0x183c8ff84 0x18b3cc2e8 0x10483fca4 0x18191a56c)
libc++abi.dylib: terminating with uncaught exception of type NSException

当我尝试使用 YouTube Helper library 加载 youTube 视频时,我收到此日志.

我在单元格中实现了 YTPlayerView 并收到了之前的错误。然后我尝试在普通的 UIViewController 中打开它。同样的问题又来了。

视频开始按方面内嵌播放,但是当我单击全屏模式按钮时,我在 AppDelegate 中收到 SIGABRT。

自从我使用 xcode 9 以来,就出现了这个问题。对于旧版本,它的工作方式与预期一致。当我在 iOS 10 设备上编译相同的代码时,它正在工作。 iOS 11 则不然。

我发现 UIWebView 中的 AVPlayer 想要使用约束,但我正在使用自动布局...我尝试使用这篇文章 How to trap on UIViewAlertForUnsatisfiableConstraints? 添加符号断点

最佳答案

找到原因了。我猜 SDK 坏了。重新安装 XCODE 就成功了!

关于ios - Swift youtube ios helper 全屏抛出异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49137054/

30 4 0
文章推荐: javascript - 如何使用chrome浏览数据javascript api?
文章推荐: java - 正则表达式无法使特殊结构 (?=x) 起作用
文章推荐: 当嵌套在动态添加的
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com