Skip to content
Guest Big Announcement

UiAlertView doesnt want to compile

Featured Replies

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

Solved by Rook

  • Replies 24
  • Views 3.6k
  • Created
  • Last Reply

Top Posters In This Topic

  • Author

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>"

  • Author

UIAlertView is deprecated.

 

Use UIAlertController

Where can I find information about UIAlertController?

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

  • Author

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.