我为启用了 ARC 的非越狱手机构建了一个静态库。效果很棒。然后我用 iOSOpenDev 构建了一个 Mobilesubstrate Logos Tweak。它从静态库中导入所有相同的类。但是它不会编译,因为在新项目中默认启用了 ARC。所以我禁用了 ARC,我就可以上钩了。但是这种调整的行为有时很奇怪。我怀疑它的ARC。我想启用它。我已经准备好了,但对我帮助不大。
如何在 iOSOpenDev 项目中启用 ARC?Logos 的附加代码非常简单
%hook UIApplication
-(void) sendEvent:(UIEvent*)event
{
[test ProcessEvent:event];//test is the static library classes imported directly in tweak
%orig;
}