使用 Xcode 11.2.1 为 iOS 创建了一个 View 项目,并在 Scheme 中启用了 Thread Sanitizer。注意:在模拟器iPhone Xr 13.2.2上运行应用程序
运行项目后,出现以下错误:
请求被服务委托 (SBMainWorkspace) 拒绝,原因是:未指定(“null”)。
Details
The request to open "kumar.helloworld" failed.
Domain: FBSOpenApplicationServiceErrorDomain
Code: 1
Failure Reason: The request was denied by service delegate (SBMainWorkspace)
for reason: Unspecified ("null").
User Info: {
BSErrorCodeDescription = RequestDenied;
FBSOpenApplicationRequestID = 0x9e5a;
}
--
The operation couldn’t be completed. (null)
Domain: FBSOpenApplicationErrorDomain
Code: 1
Failure Reason: (null)
User Info: {
BSErrorCodeDescription = Unspecified;
}
当将可执行文件设置为启动时询问时,会出现以下错误:
找不到 Thread Sanitizer 运行时支持库。请通过设置 DYLD_INSERT_LIBRARIES 环境变量手动指定它。
如果禁用Thread Sanitizer,则应用程序在模拟器中正常启动。
在这种情况下的任何帮助将不胜感激。谢谢!