jiaModuleDemo
jiaModuleDemo copied to clipboard
编译通过,但是没有执行
#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的代码块中,"成功加载友盟统计"日志未打印
项目是怎么运行起来的
@huainanzi 使用pod XAspect在我自己的项目中调用的,很简单,按照demo使用方案就可以; 如果说是demo怎么运行得具体错误分析?