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

Mac crash #3

Open
UkoeHB opened this issue Jun 30, 2024 · 6 comments
Open

Mac crash #3

UkoeHB opened this issue Jun 30, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@UkoeHB
Copy link

UkoeHB commented Jun 30, 2024

Crashes on Mac with

thread 'main' panicked at .../bevy_device_lang-0.4.0/src/apple.rs:10:35:
invalid message send to -[__NSArrayM objectAtIndex:]: expected argument at index 0 to have type code 'Q', but found 'q'

Great little crate btw, thanks for putting this together.

@extrawurst
Copy link
Contributor

very interersting. what language settings do you use?

@extrawurst extrawurst added the bug Something isn't working label Jun 30, 2024
@UkoeHB
Copy link
Author

UkoeHB commented Jun 30, 2024

I'm on a MacBook Pro M1 v12.5.1, with English (US) as my primary language.

@extrawurst
Copy link
Contributor

Hm I am confused why this works on my MacBook m1 with primary English 😂

@UkoeHB
Copy link
Author

UkoeHB commented Jun 30, 2024

Maybe can use https://developer.apple.com/documentation/foundation/nsarray/1412852-firstobject instead and then cast the Any to string.

It could also be a bug with icrate::Foundation::NSString;, some kind of versioning mismatch.

@UkoeHB
Copy link
Author

UkoeHB commented Jun 30, 2024

I will fork this later today and troubleshoot.

@UkoeHB
Copy link
Author

UkoeHB commented Jul 1, 2024

Hey I didn't end up figuring out the problem. While researching how other crates do it, I found sys-locale, which is a more mature version of this crate that works on my system, so I decided to use that one in my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants