-
Notifications
You must be signed in to change notification settings - Fork 51
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
Program crash caused by [initWithUUIDBytes] on macOS intel chip #671
Comments
The issue is that while the signature of the function didn't ever change, the internal encoding did, and that's what I've been working around here :/. But you're completely right that the fix is bad, I'll make sure to fix it properly in the next release. In the meantime, you can do: [profile.dev.package.objc2]
debug-assertions = false |
Thank you very much for your help and reply. Since I have only been in touch with rust for more than a week, I can only find where and why the error was reported. To run forked obj2 locally on macos, GNUstep cannot be installed and it is impossible to verify whether the code can be repaired. I'm sorry I'm not able to provide more repair help. |
Don't worry, I know what the issue is. The fix I provided was for you to put in your top-level Also, you shouldn't need GNUStep on macOS? |
I've added a feature to work around this issue in 155b5c7 and documented the problem on the Once the next version is released, you can do the following instead: [dependencies]
objc2 = { version = "0.3", features = ["disable-encoding-assertions"] } |
😙thx much. |
I used the data_store_identifier function of wry on the macOS intel chip notebook to pass in the UUID error, and the error message showed that the error was thrown by objc2-foundation. I looked at this lib, and it was probably thrown by this line of code.
Since I use it on macOS with M chip, the program is running normally. intel and M chip macos version, installation dependence, software are the same.
Os:macOS 15.1 (24B83) 2.2 GHz 6core Intel Core i7
throw file:
https://github.com/madsmtm/objc2/blob/master/framework-crates/objc2-foundation/src/uuid.rs
throw message:
I don't think you should switch UUID by chip architecture
macos 10.8+This interface has not been changed
https://developer.apple.com/documentation/foundation/nsuuid/1417039-initwithuuidbytes
some img
The text was updated successfully, but these errors were encountered: