widget - 无法在 iOS 14 模拟器中启动主屏幕小部件

标签 widget ios14

错误详情:

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 --

System Information

macOS Version 10.15.6 (Build 19G73) Xcode 12.0 (17200.1)

最佳答案

可能是因为您更改了 :widget 结构中的 kind 字符串。去编辑您的方案,并在参数中,将 _XCWidgetKind 的名称更改为您的新种类名称之一。当我输入这个 lol 时,实际上只是将此修复程序加载到我的模拟器中。

关于widget - 无法在 iOS 14 模拟器中启动主屏幕小部件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63451273/

相关文章:

jquery - 图像 uploader 小部件未预览所选图像

ios - "ITMS-90853: Invalid font"on TestFlight 外部测试

ios - UniversalLink 不适用于 iOS 14 设备,但在模拟器上运行良好

ios - 从 WidgetKit WidgetKit 扩展检测应用程序启动

ios - Apple 登录无法在 iOS 14 模拟器上运行

swift - 代理包装 iOS 14 Logger 类

anaconda - 元数据可以成为 Orange3 中的目标变量吗?

javascript - HTML/JavaScript UI 小部件 GUI 生成器

java - 如何将值从主屏幕小部件传递到应用程序?

twitter - 如何更改 twitter.com 小部件中的字体类型?