当我尝试在Xcode的Canvas窗口中预览我的SwiftUI视图时,我的项目成功构建,但是在Canvas窗口中收到以下错误:
UVIntegration.DTXMessageError.messageRepliedWithError(“连接到已启动的交互式代理6310”,可选(错误域= com.apple.dt.ultraviolet.service代码= 17“ connectToPreviewHost:无法连接到6310:错误域= RemoteBundleLoader错误代码= 17”失败由于缺少引导符号,因此无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit” UserInfo = {NSLocalizedDescription =无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit(由于缺少引导符号)}“ UserInfo = {NSLocalizedDescription = connectToPreviewHost:连接失败6310:错误域= RemoteBundleLoader错误代码= 17“由于缺少引导符号,因此未能加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit” UserInfo = {NSLocalizedDescription =由于缺少引导符号而无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit}})) )UserInfo = {NSLocalizedDescription =由于缺少引导符号而无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit}})) )UserInfo = {NSLocalizedDescription =由于缺少引导符号而无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit}})) )
GenericHumanReadableError:发生意外错误messageRepliedWithError(“正在连接到已启动的交互式代理6310”,可选(错误域= com.apple.dt.xcodepreviews.service代码= 17“ connectToPreviewHost:无法连接到6310:错误域= RemoteBundleLoaderError代码= 17”由于缺少引导符号,因此无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit。UserInfo={NSLocalizedDescription=无法加载由于缺少引导符号,库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit}“ UserInfo = {NSLocalizedDescription = connectToPreviewHost:无法连接到6310:Error Domain = RemoteBundleLoaderError Code = 17“无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit由于缺少引导符号“ UserInfo = {NSLocalizedDescription =由于缺少元素而无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit自举符号}}))UserInfo = {NSLocalizedDescription =由于缺少引导符号而无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit}}))UserInfo = {NSLocalizedDescription =由于缺少引导符号而无法加载库/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit}}))
清理构建文件夹,然后杀死Xcode,启动Xcode,执行完整的构建可能(有时)解决问题。然后整个马戏团又开始了。我认为这对苹果有点可耻。最令人沮丧的是(至少对我而言)文档几乎不存在。这都是反复试验。主要是错误。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句