-
Notifications
You must be signed in to change notification settings - Fork 60
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
PlayKeychain crashes during Minecraft startup #149
Comments
There is a nil-unwrapping problem in PlayTools, as mentioned. Additionally, there is no implementation of |
I can confirm that this issue persists in PlayTools 3.0.0. |
There is need to find default keychain flags on primary keys. |
Hey Ryu-ga, this is amazing, could you please explain how you got it working? |
We believe that the SecItem methods should work with the necessary primary keys, but Minecraft uses deficient keys and it works well in the real iOS platform and MacOS. The SecItem method in PlayChain was not working with that, so I added a default key as a replacement. |
The problem with this specific invocation is the lack of key class specification. Whether this is wrong or not is unclear in Apple's documentation, as it doesn't mention whether you have to specify it or not. If it's not wrong, then |
Did you open a PR for this commit? thx |
This comment was marked as duplicate.
This comment was marked as duplicate.
Any news on fixing this issue? I've tried commit but it has errors and deprecated code showing up in XCode's build log. I'd love to get this working, please let me know if there's anything I can do to help |
There’s been a recent code change that requires an update to the patch. Additionally, it’s crucial to ensure that the default keychain item value does not work negatively with other applications. |
Oh that's great news, sounds like this is something that might get fixed in the future. I'll be totally honest, I've been searching for a good way to run Minecraft on a Mac for quite a while, so that I can play the iOS version with my kids, without us having to use a custom server (with Geyser etc), which has cost us money to run and quite a lot of time keeping it compatible and up-to-date. We've also had periods where a Minecraft update has broken compatibility and we have not been able to play together for months at a time, which sucks, because we use Minecraft as a tool for the kids education and home schooling. When I saw your screenshot of it running with PlayCover (about 4 months ago) my heart skipped a beat! With this in mind, it is the only reason I've been looking into PlayCover (Sorry Genshin fans!). So if there's a quick and dirty fix I could do myself, I'd be more than happy to try that, even if it only runs Minecraft after the patch. In the meantime, I'll keep reading up on the PlayCover code base, and Swift in general, to see if I can work out how to help. Right now I'm looking into how to set targets and compile a different PlayTools version that can be found and packaged by Carthage. I'm totally new to Xcode and Swift, so it's been a bit of a learning curve. Thank you very much Ryu-ga! I really appreciate your response and the work you have done for the community 🩷 |
PlayCover 3.0.0 nightly 768
Minecraft 1.19.40. Similar behaviour with 1.17.x, 1.18.x. 1.14.x doesn't crash
dies here
PlayTools/PlayTools/MysticRunes/PlayedApple.swift
Line 114 in 4f3713b
kSecAttrKeyClass
in the dictionaryThe text was updated successfully, but these errors were encountered: