简体   繁体   中英

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

From my research I found below solution and tried still issue is not resolved.

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. This is only necessary for the extension's target. When uploading your archive to the App Store Connect, uncheck "Include bitcode for iOS content".

在此处输入图像描述

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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