Jump to content

UiAlertView doesnt want to compile


Go to solution Solved by Rook,

25 posts in this topic

Recommended Posts

Posted

Hello Again, so when I'm trying to compile my tweak the only thing that doesn't want to compile is the UiAlertView. If I delete the Ui and try to compile the tweak with the cheat then it works but when i try to compile with UiAlertView it shows me an error:

 

G-Eazy-Jr:/var/mobile/raft root# make package install
Making all for tweak Raft...
 Preprocessing Tweak.xm...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
 Compiling Tweak.xm...
Tweak.xm:15:1: error: 'UIAlertView' is deprecated:
      first deprecated in iOS 9.0
      [-Werror,-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] ini...
^
/var/mobile/raft/theos/sdks/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 
      'UIAlertView' has been explicitly marked
      deprecated here
@interface UIAlertView : UIView
           ^
Tweak.xm:15:24: error: 'UIAlertView' is deprecated:
      first deprecated in iOS 9.0
      [-Werror,-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] ini...
                       ^
/var/mobile/raft/theos/sdks/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 
      'UIAlertView' has been explicitly marked
      deprecated here
@interface UIAlertView : UIView
           ^
2 errors generated.
make[2]: *** [obj/Tweak.xm.49b02bef.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Raft.all.tweak.variables] Error 2
G-Eazy-Jr:/var/mobile/raft root
  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Use the iOS 8.1 SDK or the 9.0 SDK

if i use a lower one then it shows me "fatal error: #import <pthread.h>"

  • Solution
Posted

UIAlertView is deprecated.

 

Use UIAlertController

Posted

UIAlertView is deprecated.

 

Use UIAlertController

Where can I find information about UIAlertController?

Posted

yes i have tried 8.1 to 9.2 and it seems like 9.3 is the only one that works 

Weird. I always use the 8.1 SDK from there without issue O.o

Posted

Weird. I always use the 8.1 SDK from there without issue O.o

yeah, when i was on 9.3.3 i used 8.1 SDK but now that i'm on 10.2 it seems to be a problem for me :(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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