IDE:Xcode14 Version 14.0 (14A309)
问题:通过SMP集成后,初始化即报线程警告
位置:Sources - Foundation - Extension - 第312行代码
'''
func expect(_ task: @escaping (_ fulfill: @escaping (T) -> Void) throws -> Void) rethrows -> T {
var result: T!
let dispatchGroup = DispatchGroup()
dispatchGroup.enter()
try task { value in
result = value
dispatchGroup.leave()
}
dispatchGroup.wait()
return result
}
'''
错误内容:
/Users/amos/Library/Developer/Xcode/DerivedData/AmosGym-btebomjeycktrwftqekiucmchfrm/SourcePackages/checkouts/swift-sdk/Sources/Foundation/Extension.swift:312: warning run: Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_DEFAULT. Investigate ways to avoid priority inversions
最后:开发版连汇报bug的工单都无法创建这是我没有想到的,望尽快修复。