This repository has been archived by the owner on Nov 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Crash on x64 architecture #69
Comments
Also found this issue with iActiveRecord under 64-bit. Removing the architecture from Build Settings temporarily solved the problem. |
did you manage to overcome this? looks like there is no support for 64-bit at all ? |
Possibly dirty fix: NSString* result = aCondition;
for (int i = 0; i < sqlArguments.count; i++) {
NSRange range = [result rangeOfString:@"%@"];
result = [result stringByReplacingCharactersInRange:range withString:[sqlArguments objectAtIndex:i]];
} |
Nice joshuatam, thank you, helped |
Thanks @joshuatam! I think this is a slightly less dirty version of the fix: NSString* result = aCondition;
NSRange testRange = NSMakeRange(0, result.length);
for (int i = 0; i < sqlArguments.count; i++) {
NSRange range = [result rangeOfString:@"%@" options:NSLiteralSearch range:testRange];
result = [result stringByReplacingCharactersInRange:range withString:[sqlArguments objectAtIndex:i]];
//move the test range up to the last character of the replacement to prevent hitting
//literal %@ in the args
NSUInteger prefix = range.location + [[sqlArguments objectAtIndex:i] length];
testRange = NSMakeRange(prefix, result.length - prefix);
}
|
Thanks. |
I have created a pull request to fix it based on "mgod" version. It is working now. |
Can you merge pls: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
When I run the projects on 64bit simulator, I get crashes.
In one project it is
In the other project the crash is in
Please let me know if any of them do reproduce on your station as well.
Thank you in advance!
The text was updated successfully, but these errors were encountered: