简体   繁体   English

锁屏小部件在 iOS 设备上的小部件列表中不可用

[英]Lockscreen widget not available in widgets list on iOS device

I've developed a lock screen widget for the Flutter application using SwiftUI. The widget is working on the iOS simulator.我已经使用 SwiftUI 为 Flutter 应用程序开发了一个锁屏小部件。该小部件正在 iOS 模拟器上工作。 However, when I'm uploading the app to Test Flight and after installing an app to the real device try to add a widget to the lock screen but the widget is missing from the widgets list.但是,当我将应用程序上传到 Test Flight 并在将应用程序安装到真实设备后尝试将小部件添加到锁定屏幕时,但小部件列表中缺少该小部件。

From my research I found below solution and tried still issue is not resolved.根据我的研究,我发现了以下解决方案并尝试了仍然没有解决问题。

https://developer.apple.com/forums/thread/655393 https://developer.apple.com/forums/thread/655393

As per the release notes, you need to set "Dead Code Stripping" to NO in your extension target's build settings.根据发行说明,您需要在扩展目标的构建设置中将“Dead Code Stripping”设置为 NO。 This is only necessary for the extension's target.这仅对于扩展的目标是必需的。 When uploading your archive to the App Store Connect, uncheck "Include bitcode for iOS content".将存档上传到 App Store Connect 时,取消选中“包括 iOS 内容的位码”。

在此处输入图像描述

Am I missing something?我错过了什么吗? Any help will be appreciated.任何帮助将不胜感激。 Thanks in advance.提前致谢。

I had a some problem but fortunately I've realized that I'm using a WidgetBundle and after including the new widget in that bundle, it was available in the list.我遇到了一些问题,但幸运的是,我意识到我正在使用WidgetBundle ,并且在该捆绑包中包含新的小部件之后,它在列表中可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM