We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[NSBundle aspect_hookSelector:@selector(infoDictionary) withOptions:AspectPositionInstead usingBlock:^(id aspectInfo) { NSDictionary *dictInfoDictionary; NSInvocation *invocationInfoDictionary = aspectInfo.originalInvocation; [invocationInfoDictionary invoke]; [invocationInfoDictionary getReturnValue:&dictInfoDictionary]; NSMutableDictionary *dictInfoDictionaryNew =[NSMutableDictionary dictionaryWithDictionary:dictInfoDictionary]; dictInfoDictionaryNew[@"CFBundleIdentifier"] = @"com.naruto1.demo1"; NSLog(@"[%s,%d] dictInfoDictionary:%@",FUNCTION,LINE,dictInfoDictionaryNew); [invocationInfoDictionary setReturnValue:&dictInfoDictionaryNew]; } error:NULL];
when I write this code: NSLog(@"[%s,%d] dictInfoDictionary:%@",FUNCTION,LINE,[[NSBundle mainBundle] infoDictionary]);
console: *** -[__NSDictionaryM retain]: message sent to deallocated instance 0x155ef1580
The text was updated successfully, but these errors were encountered:
Aspects is open source - I welcome you to debug and provide a pull request for this.
Sorry, something went wrong.
No branches or pull requests
[NSBundle aspect_hookSelector:@selector(infoDictionary) withOptions:AspectPositionInstead usingBlock:^(id aspectInfo) {
NSDictionary *dictInfoDictionary;
NSInvocation *invocationInfoDictionary = aspectInfo.originalInvocation;
[invocationInfoDictionary invoke];
[invocationInfoDictionary getReturnValue:&dictInfoDictionary];
NSMutableDictionary *dictInfoDictionaryNew =[NSMutableDictionary dictionaryWithDictionary:dictInfoDictionary];
dictInfoDictionaryNew[@"CFBundleIdentifier"] = @"com.naruto1.demo1";
NSLog(@"[%s,%d] dictInfoDictionary:%@",FUNCTION,LINE,dictInfoDictionaryNew);
[invocationInfoDictionary setReturnValue:&dictInfoDictionaryNew];
} error:NULL];
when I write this code:
NSLog(@"[%s,%d] dictInfoDictionary:%@",FUNCTION,LINE,[[NSBundle mainBundle] infoDictionary]);
console:
*** -[__NSDictionaryM retain]: message sent to deallocated instance 0x155ef1580
The text was updated successfully, but these errors were encountered: