iOSOpenDev为Logos调整启用ARC支持

时间:2013-08-19 07:32:44

标签: ios jailbreak

我为使用ARC Enabled的非监狱破坏手机构建了一个静态库。工作真棒。然后我用iOSOpenDev构建一个Mobilesubstrate Logos Tweak。它从静态库导入所有相同的类。但是它不能编译,因为在新项目中默认启用ARC。所以我禁用ARC,我能够挂钩。但有时这种调整的行为很奇怪。我怀疑它的ARC。我想启用它。我准备好了this,但对我帮助不大。

如何在iOSOpenDev项目中启用ARC? Logos的附加代码非常简单

%hook UIApplication
-(void) sendEvent:(UIEvent*)event
{

[test ProcessEvent:event];//test is the static library classes imported directly in tweak

%orig;
}

1 个答案:

答案 0 :(得分:2)

如果我理解,您可以像这样启用ARC:enter image description here

或者您可以打开项目并选择编辑 - >重构 - >转换为Objective-C ARC。如果代码已准备好进行转换,则会开始检查代码。

或者只需阅读this教程。

相关问题