-
Notifications
You must be signed in to change notification settings - Fork 92
Crash [__NSArrayM getObjects:range:]: range {0, 3} extends beyond bounds [0 .. 1] #59
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
Comments
Hello, @moontecholabs
–
|
@andr-ggn thanks For your help
|
@andr-ggn any update on above crash. |
Hello, @moontecholabs again! We are checking the best way to fix it on SDK side but in the meanwhile, I prepared a small workaround for you. Please, let us know if it works for you. //
// AppsFlyer+Workaround.m
//
// Created by AndreyG-AF on 10/02/17.
//
#import <objc/runtime.h>
#import <Foundation/Foundation.h>
@implementation NSUserDefaults (AppsFlyer)
+ (void)load {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
Class class = [self class];
method_exchangeImplementations(class_getInstanceMethod(class, @selector(setObject:forKey:)),
class_getInstanceMethod(class, @selector(af_setObject:forKey:)));
method_exchangeImplementations(class_getInstanceMethod(class, @selector(removeObject:)),
class_getInstanceMethod(class, @selector(af_removeObject:)));
});
}
- (void)af_setObject:(NSString *)string forKey:(NSString *)key {
dispatch_async(dispatch_get_main_queue(), ^{
[self af_setObject:string forKey:key];
});
}
- (void)af_removeObject:(NSString *)key {
dispatch_async(dispatch_get_main_queue(), ^{
[self af_removeObject:key];
});
}
@end |
@andr-ggn thanks for your help.We will check and update if it working. |
@moontecholabs any updates? |
We have updated latest pod version, so now not facing. |
after installing AppsFlyerFramework we received Crash on our Fabrics.Crash details as follow.
The text was updated successfully, but these errors were encountered: