Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed> error #63

Open
teologov opened this issue Nov 23, 2020 · 2 comments

Comments

@teologov
Copy link

teologov commented Nov 23, 2020

Hi, I've just replaced the MASPreferences with your package, amazing work! It works perfectly on macOS Big Sur 11.0.1.

But I've faced with next issue when I open the preferences window on macOS Catalina 10.15.6. My app crashes with this error:

function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed> of SnipperApp_2.GeneralPreferencesController.init(nibName: Swift.String?, bundle: __C.NSBundle?) -> SnipperApp_2.GeneralPreferencesController GeneralPreferencesController.swift:0
SnipperApp 2
@objc SnipperApp_2.GeneralPreferencesController.init(nibName: Swift.String?, bundle: __C.NSBundle?) -> SnipperApp_2.GeneralPreferencesController <compiler-generated>:0
SnipperApp 2
SnipperApp_2.AppDelegate.preferencesWindowController.getter : Preferences.PreferencesWindowController <compiler-generated>:0
SnipperApp 2
function signature specialization <Arg[0] = Dead> of SnipperApp_2.AppDelegate.showPreferences(Swift.AnyObject) -> () AppDelegate.swift:420
SnipperApp 2
merged @objc SnipperApp_2.AppDelegate.showPreferences(Swift.AnyObject) -> ()
AppKit
-[NSApplication(NSResponder) sendAction:to:from:]
AppKit
-[NSMenuItem _corePerformAction]
AppKit
-[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:]
AppKit
-[NSMenu performActionForItemAtIndex:]
AppKit
-[NSMenu _internalPerformActionForItemAtIndex:]
AppKit
-[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:]
AppKit
NSSLMMenuEventHandler
HIToolbox
DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)
HIToolbox
SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)
HIToolbox
SendEventToEventTarget
HIToolbox
SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**)
HIToolbox
SendMenuCommandWithContextAndModifiers
HIToolbox
SendMenuItemSelectedEvent
HIToolbox
FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*)
HIToolbox
MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*)
HIToolbox
_HandleMenuSelection2
AppKit
_NSHandleCarbonMenuEvent
AppKit
_DPSEventHandledByCarbon
AppKit
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
AppKit
-[NSApplication run]
AppKit
NSApplicationMain
SnipperApp 2
main AppDelegate.swift:32
libdyld.dylib
start

Preferences version: 2.1.0, installed via cocoapods.

@sindresorhus
Copy link
Owner

Looks like a problem with loading your bundle. I don't think this is a problem with Preferences though. I recommend trying to do some debugging with breakpoints to try to track it down.

@teologov
Copy link
Author

Looks like a problem with loading your bundle. I don't think this is a problem with Preferences though. I recommend trying to do some debugging with breakpoints to try to track it down.

@sindresorhus thanks for the reply! Ok, I'll debug it to get some more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants