-
Notifications
You must be signed in to change notification settings - Fork 18
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
Workaround for stupid Xcode 9.2 hard errors? #1
Comments
@dhoerlSA Thanks for posting this. I've tested it and confirmed it works here for the use-cases I'm using this for. Maybe change this to a PR? |
Sure. Will do my best to get it done tomorrow (Sat).
… On Feb 23, 2018, at 4:58 PM, Chad Robinson ***@***.***> wrote:
@dhoerlSA Thanks for posting this. I've tested it and confirmed it works here for the use-cases I'm using this for. Maybe change this to a PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
hi man, you just need change
to
all errors should go away. |
This workaround works for 64-bit devices, but on 32-bit devices half of the resulting MD5 is filled with zeroes. On an iPhone X, md5("Hello, world") = bc6e6f16b8a077ef5fbc8d59d0b931b9 ✅ Using Xcode 9.4 beta (9Q1004a), iOS 11.4 SDK — same results on simulator or on device. |
The problem is in
because on a 32-bit platform
That should work correctly on 32-bit and 64-bit. |
In MD5Digest, Xcode 9.2 is flagging these two lines as exceeding the size of a UInt32, which is of course totally wrong:
Well, I found a workaround (untested at this point):
Geez ... [Post is really to help out any other poor soul running into this issue...]
The text was updated successfully, but these errors were encountered: