Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
PatchGenerator.zip | 2023-07-29 | 249.2 kB | |
1.3.0 source code.tar.gz | 2023-07-29 | 1.5 MB | |
1.3.0 source code.zip | 2023-07-29 | 1.6 MB | |
README.md | 2023-07-29 | 1.2 kB | |
Totals: 4 Items | 3.3 MB | 0 |
BUGFIX: overided a class's dealloc, it will be called twice when a object dealloc [first call script's dealloc, then call native's dealloc, like JSPatch]. FEATURE: overided a class's dealloc, it will call [super deallloc] by default at the end of method scope. if we hotfix a native class's dealloc, now we can call [self ORGdealloc] manually to call native's dealloc [⚠️WARNNING : don't use [self ORGdealloc]] in old version OCRunner, it will crash. you can't use it when app has multi version of OCRunner in online AppStore] [BUGFIX: 解决 hotfix Native Class 的 dealloc 后,默认会像 JSPatch 一样默认调用 [self ORGdealloc],会造成 dealloc 调用两次的问题,先调用 script 的 dealloc 随后接着调用 native 的 dealloc ] [FEATURE: 针对这种情况,为了更加符合 objc 的使用习惯,现在默认会调用 [super dealloc] 以避免这种情况,同时为了兼容在 dealloc 中调用 native 的 dealloc, 现在可以在脚本中使用 [self ORGdealloc] 以达成这个目的 ] [⚠️ 但不幸的是,这个方法调用下发到旧版本的 OCRunner 中将会直接触发奔溃 ] [⚠️⚠️⚠️ 请勿使用 [self ORGdealloc], 当线上的 OCRunner < 1.3.0 ]