-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Embedded Info.plist doesn't seem to be recognised #1
Comments
How does your plist look using otool?
|
There seems to be some kind of corruption at the start of it:
|
Ah, no, that's just |
I noticed that the section was missing on newer compilers, so that bug would affect this issue. 1d6f2b9 fixes this. Will publish This issue also seems to affect dtolnay/linkme#41. |
Hello,
I'm not very familiar with Mac OS, so it's entirely possible I'm misunderstanding or doing something wrong, but it appears that the Info.plist embedded by this crate isn't being recognised by the OS.
Context:
I'm working on a Rust Bluetooth library. Since Big Sur, accessing CoreBluetooth APIs apparently requires that the Info.plist contain a string
NSBluetoothAlwaysUsageDescription
saying why the program wants to use it. When I embed an appropriate Info.plist with this crate and then run my binary from the command-line (either viacargo run
or directly), it crashes withAbort trap: 6
. If I run it inside lldb, I get an error message:If I instead copy the Info.plist to
target/debug/examples/
alongside the binary, then running it directly still fails, but running in lldb then it prompts for the permission and runs correctly.I'm on MacOS 11.2, x86_64, Rust 1.49.0, embed_plist 1.2.0. You can see my code trying to use it in deviceplug/btleplug#116.
So I guess there are two questions:
The text was updated successfully, but these errors were encountered: