无法在iOS 14模拟器中启动主屏幕小部件 [英] Failed to launch home screen widget in iOS 14 Simulator
问题描述
错误详细信息:
SendProcessControlEvent:toPid:遇到错误:错误 域= com.apple.dt.deviceprocesscontrolservice代码= 8无法显示 窗口小部件'com.anupam.iOS14Feature.widgetExtension'错误:错误 域= SBAvocadoDebuggingControllerErrorDomain代码= 2,请指定 使用键将方案的环境变量中的小部件类型 '_XCWidgetKind'为以下之一:'BillPayCheckerWidget', "CommitCheckerWidget"" UserInfo = {NSLocalizedDescription =请指定 使用键将方案的环境变量中的小部件类型 '_XCWidgetKind'为以下之一:'BillPayCheckerWidget', "CommitCheckerWidget"}. UserInfo = {NSLocalizedDescription =失败 显示小部件'com.anupam.iOS14Feature.widgetExtension'错误:错误 域= SBAvocadoDebuggingControllerErrorDomain代码= 2,请指定 使用键将方案的环境变量中的小部件类型 '_XCWidgetKind'为以下之一:'BillPayCheckerWidget', "CommitCheckerWidget"" UserInfo = {NSLocalizedDescription =请指定 使用键将方案的环境变量中的小部件类型 '_XCWidgetKind'为以下之一:'BillPayCheckerWidget', 'CommitCheckerWidget'}.,NSUnderlyingError = 0x7fc70d618350 {Error 域= SBAvocadoDebuggingControllerErrorDomain代码= 2,请指定 使用键将方案的环境变量中的小部件类型 '_XCWidgetKind'为以下之一:'BillPayCheckerWidget', "CommitCheckerWidget"" UserInfo = {NSLocalizedDescription =请指定 使用键将方案的环境变量中的小部件类型 '_XCWidgetKind'为以下之一:'BillPayCheckerWidget', 'CommitCheckerWidget'}}}域:DTX消息代码:1 -
SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.anupam.iOS14Feature.widgetExtension' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'BillPayCheckerWidget', 'CommitCheckerWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'BillPayCheckerWidget', 'CommitCheckerWidget'}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.anupam.iOS14Feature.widgetExtension' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'BillPayCheckerWidget', 'CommitCheckerWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'BillPayCheckerWidget', 'CommitCheckerWidget'}., NSUnderlyingError=0x7fc70d618350 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'BillPayCheckerWidget', 'CommitCheckerWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'BillPayCheckerWidget', 'CommitCheckerWidget'}}} Domain: DTXMessage Code: 1 --
系统信息
macOS版本10.15.6(内部版本19G73)Xcode 12.0(17200.1)
macOS Version 10.15.6 (Build 19G73) Xcode 12.0 (17200.1)
推荐答案
可能是因为您在:widget结构中更改了种类字符串.转到编辑方案,然后在参数中将_XCWidgetKind的名称更改为新的种类名称之一.从字面上看,当我键入此大声笑时,刚刚将此修复程序加载到了我的模拟器中.
likely because you changed the kind string inside of your :widget struct. Go to edit your scheme, and in arguments, change the name of _XCWidgetKind to one of your new kind names. Literally just loaded this fix into my simulator as i typed this lol.
这篇关于无法在iOS 14模拟器中启动主屏幕小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!