-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
macOs <12 : Manager::new()
: CBManager authorization objc error
#335
Labels
bug
Something isn't working
Comments
Ok so I just explored previous SDK headers especially
So my fix I tried above obviously couldn't work... What would be the better fix for this ?
make sense ? or any other idea which would fit better in the project ? |
This was referenced Sep 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Problem occurring on call of
Manager::new()
Developing an app on a
12.5.1
macOs where the problem doesn't occur.I've been able to test on a
10.13.6
where I get a panic (foreign exception
from rust's POV)which I've been able to locate to an objc crash happening here :
the error being
-[CBManager authorization]: unrecognized selector sent to instance 0x7f9be4601020
According to Apple objc SDK documentation the property went from an
instance property
to aclass property
idrk when exactly,but
both seem to mention that the class property is available since
macOS 10.15+
which I don't have access to for now to verify...Since apparently the
CBManager
class is available since10.13
I tried to change the code from :to :
to get an instance of the class and try to get the legacy
authorization
property from it.This change didn't break anything on
12.5
, probably because it still gets the class property through the instance in the end.But on
10.13
it didn't work better...the call tonew
worked, but theauthorization
didn't.I discovered objc rust inter-workings with it on the fly, so I probably missed a thing...
Would anyone else be able to try it on a
>=10.13, <12.0
macOs or happen to manage to figure out a better solution ?Thanks forward
The text was updated successfully, but these errors were encountered: