Jump to content

THEOS Compile Error - ARC


Vegito

3 posts in this topic

Recommended Posts

Posted

Hello,

I am trying to compile and install my tweak but it gives an error saying that it forbids use of [alert release]; 

I am on iOS 12.4 , iPhone 7.

 

Here's the screenshot: 

954-E00-B4-A033-4831-B7-FC-24-CD8-F7-C9-EA6

 

 

 

And here's the code of tweak.x :

 

Quote

%hook SHAppDelegate
- (void)applicationDidBecomeActive:(id)fp8
{
UIAlertView*alert =[[UIAlertView alloc] initWithTitle:@"Testing" message:@"Test Message"
delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end

Please let me know if i did something wrong here.

Your time and help is greatly appreciated.

Posted

Hey,

You need to disable ARC from your Makefile.

Open Makefile and remove this line if you have it:

-fobjc-arc

 

Posted
5 hours ago, DADi said:

Hey,

You need to disable ARC from your Makefile.

Open Makefile and remove this line if you have it:


-fobjc-arc

 

Yes, that worked but now

here are the errors which i am getting:

 

 

0-F9340-C9-D5-AB-49-FA-B7-DF-FC4220416-F

 

 

E506-B12-C-1-DA1-46-BB-BE13-5-FE4941-AF0

 

 

This is is my makefile:

 

#import <UIKit/UIKit.h>

export ARCHS = armv7 armv7s arm64

 

WelcomeMsg_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit AudioToolbox

 

INSTALL_TARGET_PROCESSES = SpringBoard

 

include $(THEOS)/makefiles/common.mk

 

TWEAK_NAME = WelcomeMsg

 

WelcomeMsg_FILES = Tweak.x RKDropdownAlert.m

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

 

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines