-
Notifications
You must be signed in to change notification settings - Fork 49
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
objc2-media-player: invalid message send to -[_MPMusicPlayerMediaItemProxy title]: method not found #645
Comments
Thanks for the report - I remember seeing this asked on Matrix as well, the issue is that our debug assertion check is overly zealous about when methods exist. I think we need to use the Objective-C method instead of You can use something like the following to work around this issue in the meantime, apologies for the hazzle: [profile.dev.package.objc2]
debug-assertions = false |
the method check is also a problem for methods that are only available in newer macOS releases - crashing the debug app when running on older operating systems (see #11501 #11496) |
While true, that's kinda the expected behaviour, even if this You must check the OS version and do something else when the API isn't available (can be done in the next release of See also the discussion on the wry issues: tauri-apps/wry#1401, tauri-apps/wry#1402.
Both good options, not sure yet what I'll do (but I'll definitely do something to fix this before the next release). |
@madsmtm that's true for API calls, but not for delegate methods (in this case you would just register a function for a class with a selector that simply do not exist and is not called by the operating system) |
Oh yeah, you're right! |
The following code:
produces the following output:
I am using
objc2-media-player
v0.2.2 with the featuresMPMediaEntity
,MPMediaItem
, andMPMusicPlayerController
on macOS 15.1 Beta (24B5024e).The text was updated successfully, but these errors were encountered: