Hi,
I added Widget extension to my macOS app. When I building my app in Debug mode everything is ok and Widget appears in Notification Center after my application first run. If I build the app in Release configuration Widget didn't appear in NotificationCenter.
I know about workaround, posted in Xcode 12 Beta 6 Release notes with setting DEADCODESTRIPPING to NO, it didn't help me.
If I run Widget extension in release configuration I got such errors in console.
Any idea about what's wrong?
Thanks in advace.
I added Widget extension to my macOS app. When I building my app in Debug mode everything is ok and Widget appears in Notification Center after my application first run. If I build the app in Release configuration Widget didn't appear in NotificationCenter.
I know about workaround, posted in Xcode 12 Beta 6 Release notes with setting DEADCODESTRIPPING to NO, it didn't help me.
If I run Widget extension in release configuration I got such errors in console.
Code Block language 2020-08-26 15:21:16.967762+0300 WidgetKit Simulator[36539:798933] [SwiftUI] ReferenceFileDocument.init(fileWrapper:contentType:) is deprecated and will be removed in a future seed. Please implement ReferenceFileDocument.init(configuation:) on SimulatorDocument instead. 2020-08-26 15:21:17.688343+0300 WidgetKit Simulator[36539:798718] Metal API Validation Enabled 2020-08-26 15:21:17.718977+0300 WidgetKit Simulator[36539:798891] flock failed to lock list file (/var/folders/9b/p2tjq4w53z5_89rqdjkzg06w0000gn/C/com.apple.widgetkit.simulator//com.apple.widgetkit.simulator/com.apple.metal/31001/libraries.list): errno = 35 2020-08-26 15:21:17.934283+0300 WidgetKit Simulator[36539:798891] flock failed to lock list file (/var/folders/9b/p2tjq4w53z5_89rqdjkzg06w0000gn/C/com.apple.widgetkit.simulator//com.apple.widgetkit.simulator/com.apple.metal/16777237_9765638/functions.list): errno = 35 2020-08-26 15:21:19.394672+0300 WidgetKit Simulator[36539:798933] [lifecycle] [u ECD159B6-EADE-4918-95D9-F6E5D9A9F46D:m (null)] [com.companyname.MyApp.Test(1.0)] Connection to plugin interrupted while in use. 2020-08-26 15:21:19.404633+0300 WidgetKit Simulator[36539:798933] [lifecycle] [u ECD159B6-EADE-4918-95D9-F6E5D9A9F46D:m (null)] [com.companyname.MyApp.Test(1.0)] Connection to plugin invalidated while in use. 2020-08-26 15:21:19.630824+0300 TestExtension[36541:799085] [subsystems] Bootstrapping; external subsystem UIKit_PKSubsystem refused setup 2020-08-26 15:21:19.636806+0300 TestExtension[36541:799582] [default] Failed to find the 'main()' function in the main binary. 2020-08-26 15:21:25.972237+0300 WidgetKit Simulator[36539:798897] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}> 2020-08-26 15:21:26.348873+0300 WidgetKit Simulator[36539:798897] [lifecycle] [u ECD159B6-EADE-4918-95D9-F6E5D9A9F46D:m (null)] [com.companyname.MyApp.Test(1.0)] Connection to plugin interrupted while in use. 2020-08-26 15:21:26.351501+0300 WidgetKit Simulator[36539:798791] [lifecycle] [u ECD159B6-EADE-4918-95D9-F6E5D9A9F46D:m (null)] [com.companyname.MyApp.Test(1.0)] Connection to plugin invalidated while in use.
Any idea about what's wrong?
Thanks in advace.