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
#import "XAAppDelegate.h" #import "XAspect.h"
#define AtAspect AnalyticsAppDelegate
#define AtAspectOfClass XAAppDelegate @classpatchfield(XAAppDelegate)
AspectPatch(-, BOOL, application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions) { NSLog(@"成功加载友盟统计"); return XAMessageForward(application:application didFinishLaunchingWithOptions:launchOptions); }
@EnD #undef AtAspectOfClass #undef AtAspect
在自己的项目中,加入如上代码,debug中,没有进入AspectPatch的代码块中,"成功加载友盟统计"日志未打印
The text was updated successfully, but these errors were encountered:
项目是怎么运行起来的
Sorry, something went wrong.
@huainanzi 使用pod XAspect在我自己的项目中调用的,很简单,按照demo使用方案就可以; 如果说是demo怎么运行得具体错误分析?
No branches or pull requests
#import "XAAppDelegate.h"
#import "XAspect.h"
#define AtAspect AnalyticsAppDelegate
#define AtAspectOfClass XAAppDelegate
@classpatchfield(XAAppDelegate)
AspectPatch(-, BOOL, application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions)
{
NSLog(@"成功加载友盟统计");
return XAMessageForward(application:application didFinishLaunchingWithOptions:launchOptions);
}
@EnD
#undef AtAspectOfClass
#undef AtAspect
在自己的项目中,加入如上代码,debug中,没有进入AspectPatch的代码块中,"成功加载友盟统计"日志未打印
The text was updated successfully, but these errors were encountered: