TorukMakto
TorukMakto

Reputation: 2088

iOSOpenDev Enable ARC support for Logos tweak

I build a static library for a non-jail broken phone with ARC Enabled. Works awesome. Then I build a Mobilesubstrate Logos Tweak with iOSOpenDev. It imports all same classes from static library. However it does not compile because ARC is enabled by default in new project. So I disable ARC and I am able to hook. But behavior of this tweak at times is weird. I doubt its ARC. I want to enable it. I have ready this but doesn't help me much.

How can I enable ARC in iOSOpenDev project? Additional code for Logos is very simple

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

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

%orig;
}

Upvotes: 1

Views: 517

Answers (1)

Kepler
Kepler

Reputation: 705

If I right understand, you can enable ARC like this:enter image description here

Or you can open your project and select Edit -> Refactor -> Convert to Objective-C ARC. This will start checking your code if it is ready for the conversion.

Or just read this tutorial.

Upvotes: 2

Related Questions