SilverFruity / OCRunner

Execute Objective-C code as script. AST Interpreter. iOS hotfix SDK.
MIT License
660 stars 149 forks source link

热更代码创建基类,BaseViewController、热更代码创建ViewController3继承于BaseViewController,会导致崩溃 #24

Closed halypot closed 2 years ago

halypot commented 2 years ago

OCRunner version: 1.2.5

description: 热更代码创建基类,BaseViewController、热更代码创建ViewController3继承于BaseViewController,会导致崩溃

@interface HotBaseController : UIViewController @end

@implementation HotBaseController

@interface ViewController3 : HotBaseController @end

@interface ViewController3 () @end @implementation ViewController3

执行push时会崩溃 UIViewController *vc = [[NSClassFromString(@"ViewController3") alloc] init]; [self.navigationController pushViewController:vc animated:YES];

截屏

PS:如果要实现增量更新,这个问题不能忽略哦,作者阁下

SilverFruity commented 2 years ago

1.2.7 已经解决此问题