当在安装了iOS 11 beta的iPhone上运行时调试Xcode 9 beta中的应用程序时,我在执行网络呼叫时开始注意到以下消息:
[] network_config_register_boringssl_log_debug_updates Failed to register for BoringSSL log debug updates
[BoringSSL] Function boringssl_context_get_peer_npn_data: line 1212 Peer's advertised NPN data is NULL or empty
Run Code Online (Sandbox Code Playgroud)
知道是什么导致了这个吗?
我想我的iOS App的主模块编译Swift 4.0,而CocoaPods模块编译swift 3.
PS:使用Xcode 9 beta 2.
我刚刚下载了最新版本的xCode(9.0 beta(9M136h)).
但是,当我尝试在iOS 11模拟器中向我的服务器发出请求时(使用NSURLConnection sendAsynchronousRequest),收到错误:
NSURLSession/NSURLConnection HTTP加载失败(kCFStreamErrorDomainSSL,-9807)NSURLConnection完成错误 - 代码-1202
NSError对象包含消息 - @"NSLocalizedDescription":@"此服务器的证书无效.您可能连接到假装为"***"的服务器,这可能会使您的机密信息面临风险."
plist包含:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Run Code Online (Sandbox Code Playgroud)
所以这不是问题(我猜)
不用说它在iOS 10/9/8中运行
有什么建议?
提前致谢!
更新到Swift 4后,我收到编译器错误:
Static member 'appearance' cannot be used on protocol metatype 'UIAppearance.Protocol'
这是我的viewWillAppear自定义Tab Bar Controller子类中的方法,我正在设置项目文本的字体.
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// compiler error on line below
UIAppearance.appearance().setTitleTextAttributes([NSAttributedStringKey.font: font], for: UIControlState.normal)
}
Run Code Online (Sandbox Code Playgroud)
我无法解决这个问题,任何指导都将不胜感激,谢谢!
在启用世界跟踪的情况下运行ARKit会话时,Xcode控制台会显示关于(我假设:减少)跟踪性能的日志消息,即使
AR Session处于Normal跟踪状态,
我在光线充足的办公室里使用该设备,有很多"功能"来检测,和
TLDR:我想了解可能导致它们的原因,它们有什么影响,以及如何防止它们,或者在它们发生时(重新)对它们采取行动 - 注意.不是简单地隐藏错误.
[Technique] World tracking performance is being affected by resource constraints [0]
[Technique] World tracking performance is being affected by resource constraints [1]
Run Code Online (Sandbox Code Playgroud)
控制台应用程序显示这些来自库ARKit并属于日志记录类别技术.虽然它们听起来像是警告,但Console应用程序会将其类型显示为错误.
正如预期的那样,在使用世界跟踪时,控制台应用程序确实会CoreMotion在错误发生时显示大量日志,但这些行似乎不包含任何错误,警告或其他有助于我诊断正在发生的事情的信息.
当错误出现在日志中时,没有委托回调,但最终(5秒或50秒之间的任何事情)屏幕将冻结,回调会话失败:
Error Domain=com.apple.arkit.error Code=200 "World tracking failed." UserInfo={NSLocalizedDescription=World tracking failed., NSLocalizedFailureReason=World tracking cannot determine the device's position.}
Run Code Online (Sandbox Code Playgroud)
ARKit源代码/ 文档没有提供关于"资源限制"可能导致无法确定设备位置的任何提示,它只是读取:
世界跟踪遇到致命错误.
我已经尝试(没有成功)阻止警告出现:
重置会话跟踪:仍然是错误,
通过删除所有ARAnchors:仍然错误重置会话,
禁用平面检测(一旦不再需要):仍然是错误,
暂停AR会话会使警告静音(有意义,因为这意味着设备会在暂停时停止跟踪其移动),但在恢复会话时,警告会返回.
当关闭会话并重新创建它(即关闭VC并重新创建)时,虽然没有移动相机(或更改了照明),但问题并不总是重新出现.
我最好的猜测是,在Apple 解释世界跟踪如何工作的 …
在Xcode 9和Swift 4中,我总是会收到一些IBInspectable属性的警告:
@IBDesignable public class CircularIndicator: UIView {
// this has a warning
@IBInspectable var backgroundIndicatorLineWidth: CGFloat? { // <-- warning here
didSet {
backgroundIndicator.lineWidth = backgroundIndicatorLineWidth!
}
}
// this doesn't have a warning
@IBInspectable var topIndicatorFillColor: UIColor? {
didSet {
topIndicator.fillColor = topIndicatorFillColor?.cgColor
}
}
}
Run Code Online (Sandbox Code Playgroud)
有办法摆脱它吗?
xcode9-beta ×10
ios ×6
ios11 ×3
swift4 ×3
swift ×2
xcode ×2
arkit ×1
cocoapods ×1
core-motion ×1
ipad ×1
logging ×1
swift3 ×1
uiappearance ×1
xcode9 ×1