无法在 iOS 14 模拟器中启动主屏幕小部件 [英] Failed to launch home screen widget in iOS 14 Simulator

查看:78
本文介绍了无法在 iOS 14 模拟器中启动主屏幕小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误详情:

SendProcessControlEvent:toPid: 遇到错误:Error域=com.apple.dt.deviceprocesscontrolservice 代码=8显示失败小部件com.anupam.iOS14Feature.widgetExtension"错误:错误Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "请指定使用键的方案环境变量中的小部件种类'_XCWidgetKind' 为以下之一:'BillPayCheckerWidget','CommitCheckerWidget'''UserInfo={NSLocalizedDescription=请指定使用键的方案环境变量中的小部件种类'_XCWidgetKind' 为以下之一:'BillPayCheckerWidget','CommitCheckerWidget'}."UserInfo={NSLocalizedDescription=失败显示小部件com.anupam.iOS14Feature.widgetExtension"错误:错误Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "请指定使用键的方案环境变量中的小部件种类'_XCWidgetKind' 为以下之一:'BillPayCheckerWidget','CommitCheckerWidget'''UserInfo={NSLocalizedDescription=请指定使用键的方案环境变量中的小部件种类'_XCWidgetKind' 为以下之一:'BillPayCheckerWidget','CommitCheckerWidget'}.,NSUnderlyingError=0x7fc70d618350 {错误Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "请指定使用键的方案环境变量中的小部件种类'_XCWidgetKind' 为以下之一:'BillPayCheckerWidget','CommitCheckerWidget'''UserInfo={NSLocalizedDescription=请指定使用键的方案环境变量中的小部件种类'_XCWidgetKind' 为以下之一:'BillPayCheckerWidget','CommitCheckerWidget'}}} 域:DTXMessage 代码: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 结构中的 kind 字符串.去编辑您的方案,并在参数中,将 _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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆