Jump to content

DiDA Code Injection compile error - openurl deprecated


Go to solution Solved by Serachrono,

8 posts in this topic

Recommended Posts

Posted

PvZ2.mm:17:42: error: 'openURL:' is deprecated: first deprecated in iOS 10.0 -

      Please use openURL:options:completionHandler: instead

      [-Werror,-Wdeprecated-declarations]

      [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"...

                                         ^

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:127:1: note: 

      'openURL:' has been explicitly marked deprecated here

- (BOOL)openURL:(NSURL*)url NS_DEPRECATED_IOS(2_0, 10_0, "Please use ope...

^

1 error generated.

make[4]: *** [/Users/HTD/PvZ2/.theos/obj/debug/armv7/PvZ2.mm.0c55d4d0.o] Error 1

make[3]: *** [/Users/HTD/PvZ2/.theos/obj/debug/armv7/PvZ2.bundle/PvZ2] Error 2

make[2]: *** [internal-bundle-all_] Error 2

make[1]: *** [PvZ2.all.bundle.variables] Error 2

make: *** [internal-all] Error 2

 

 

 

I get this error when compiling. Here is the file the problem is talking about.

 

 

#import <Preferences/Preferences.h>



@interface PvZ2ListController: PSListController {

}

@end



@implementation PvZ2ListController

- (id)specifiers {

if(_specifiers == nil) {

_specifiers = [[self loadSpecifiersFromPlistName:@"PvZ2" target:self] retain];

}

return _specifiers;

}



/* The "Visit iOSGods.com" link inside the Preferences button */

- (void)link {

      [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com"]];

}

@end



// vim:ft=objc
Posted
2 minutes ago, GodlyOne said:

 

PvZ2.mm:17:42: error: 'openURL:' is deprecated: first deprecated in iOS 10.0 -

      Please use openURL:options:completionHandler: instead

 

;) 

Posted

replace 'openURL:' with 'openURL:options:completionHandler:'

Posted
8 minutes ago, Ted2 said:

replace 'openURL:' with 'openURL:options:completionHandler:'

PvZ2.mm:17:40: error: instance method '-openURL:::' not found (return type

      defaults to 'id') [-Werror,-Wobjc-method-access]

    [[UIApplication sharedApplication] openURL:options:completionHandler:[NS...

                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:107:40: note: 

      receiver is instance of class declared here

NS_CLASS_AVAILABLE_IOS(2_0) @interface UIApplication : UIResponder

                                       ^

PvZ2.mm:17:48: error: use of undeclared identifier 'options'

    [[UIApplication sharedApplication] openURL:options:completionHandler...

                                               ^

PvZ2.mm:17:56: error: use of undeclared identifier 'completionHandler'

    [[UIApplication sharedApplication] openURL:options:completionHandler...

                                                       ^

3 errors generated.

make[4]: *** [/Users/HTD/PvZ2/.theos/obj/debug/armv7/PvZ2.mm.0c55d4d0.o] Error 1

make[3]: *** [/Users/HTD/PvZ2/.theos/obj/debug/armv7/PvZ2.bundle/PvZ2] Error 2

make[2]: *** [internal-bundle-all_] Error 2

make[1]: *** [PvZ2.all.bundle.variables] Error 2

make: *** [internal-all] Error 2

 

 

i tried that already and it gave me this

  • Solution
Posted (edited)

i switched to ios9.3 sdk and changed target so now i just got this error.

 

ERROR: package name has characters that aren't lowercase alphanums or '-+.'.

make: *** [internal-package] Error 255

 

 

nevermind just had to change dm.pl file. 

Updated by GodlyOne
Solved

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
  • Our picks

    • Rise & Loot: Idle Hero RPG v1.1.2 [ +15 Cheats ] Currency Max
      Modded/Hacked App: Rise & Loot: Idle Hero RPG By Ngoc Minh Le
      Bundle ID: com.riseloop.idlerpg
      App Store Link: https://apps.apple.com/us/app/rise-loot-idle-hero-rpg/id6821365929?uo=4

      🤩 Hack Features

      - Never Die
      - One Hit Kill
      ===== VIP =====
      - Skip Ads
      - Add Currency
      - Max Damage
      - Multi Attack x5
      - Always Exotic Loot
      - Sale Value x1000
      - Money Multiplier
      - Free Shopping / Not IAP
      - Battle Speed x3
      - Unlock All Realms
      - God Roll Gear
      - Best Card Picks
      - Daily Reward Always Ready
      • 0 replies
    • Rise & Loot: Idle Hero RPG v1.1.2 [ +15 Jailed ] Currency Max
      Modded/Hacked App: Rise & Loot: Idle Hero RPG By Ngoc Minh Le
      Bundle ID: com.riseloop.idlerpg
      App Store Link: https://apps.apple.com/us/app/rise-loot-idle-hero-rpg/id6821365929?uo=4

      🤩 Hack Features

      - Never Die
      - One Hit Kill
      ===== VIP =====
      - Skip Ads
      - Add Currency
      - Max Damage
      - Multi Attack x5
      - Always Exotic Loot
      - Sale Value x1000
      - Money Multiplier
      - Free Shopping / Not IAP
      - Battle Speed x3
      - Unlock All Realms
      - God Roll Gear
      - Best Card Picks
      - Daily Reward Always Ready
      • 0 replies
    • Stick Fight: Evolution v1.0.6 [ +22 Cheats ] Currency Max
      Modded/Hacked App: Stick Fight: Evolution By Ngoc Minh Le
      Bundle ID: com.min001.stickman.warrior.evolution.age
      App Store Link: https://apps.apple.com/us/app/stick-fight-evolution/id6747939675?uo=4

      🤩 Hack Features

      - Add Currency
      - Never Die
      - Max Damage
      ===== VIP =====
      - Auto Win
      - Skip Ads
      - Game Speed
      - Unlimited Battle Food
      - Cheat Panel +15
      • 0 replies
    • Stick Fight: Evolution v1.0.6 [ +22 Jailed ] Currency Max
      Modded/Hacked App: Stick Fight: Evolution By Ngoc Minh Le
      Bundle ID: com.min001.stickman.warrior.evolution.age
      App Store Link: https://apps.apple.com/us/app/stick-fight-evolution/id6747939675?uo=4

      🤩 Hack Features

      - Add Currency
      - Never Die
      - Max Damage
      ===== VIP =====
      - Auto Win
      - Skip Ads
      - Game Speed
      - Unlimited Battle Food
      - Cheat Panel +15
      • 0 replies
    • Geometry Cannon : Idle Defense v1.4.4 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Geometry Cannon : Idle Defense By SUPERBOX. Inc
      Bundle ID: com.superbox.ios.idledefense
      App Store Link: https://apps.apple.com/us/app/geometry-cannon-idle-defense/id6742388718?uo=4
       

      🤩 Hack Features

      - Gold Pass
      - Silver Pass
      - Add Currency
      - Never Die
      - Max Damage
      - Kill All Enemies
      - Game Speed
      • 0 replies
    • Geometry Cannon : Idle Defense v1.4.4 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Geometry Cannon : Idle Defense By SUPERBOX. Inc
      Bundle ID: com.superbox.ios.idledefense
      App Store Link: https://apps.apple.com/us/app/geometry-cannon-idle-defense/id6742388718?uo=4

      🤩 Hack Features

      - Gold Pass
      - Silver Pass
      - Add Currency
      - Never Die
      - Max Damage
      - Kill All Enemies
      - Game Speed
      • 0 replies
    • Neon Castle: Idle TD RPG v1.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Neon Castle: Idle TD RPG By Mert Can Diker
      Bundle ID: com.medu.neon.castledefense.idlerpg.ios
      App Store Link: https://apps.apple.com/us/app/neon-castle-idle-td-rpg/id6748567934?uo=4

      🤩 Hack Features

      - Add Currency
      - Never Die
      - Max Damage
      - Kill All Enemies
      • 0 replies
    • Neon Castle: Idle TD RPG v1.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Neon Castle: Idle TD RPG By Mert Can Diker
      Bundle ID: com.medu.neon.castledefense.idlerpg.ios
      App Store Link: https://apps.apple.com/us/app/neon-castle-idle-td-rpg/id6748567934?uo=4

      🤩 Hack Features

      - Add Currency
      - Never Die
      - Max Damage
      - Kill All Enemies
      • 0 replies
    • Endless Defense: Idle Tower v0.2.13 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Endless Defense: Idle Tower By MAD PIXEL GAMES LTD
      Bundle ID: battle.castle.clash.wave
      App Store Link: https://apps.apple.com/us/app/endless-defense-idle-tower/id6740865987?uo=4

      🤩 Hack Features

      - Ads No
      - Add Currency
      - Never Die
      - Max Damage
      • 0 replies
    • Endless Defense: Idle Tower v0.2.13 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Endless Defense: Idle Tower By MAD PIXEL GAMES LTD
      Bundle ID: battle.castle.clash.wave
      App Store Link: https://apps.apple.com/us/app/endless-defense-idle-tower/id6740865987?uo=4
       

      🤩 Hack Features

      - Ads No
      - Add Currency
      - Never Die
      - Max Damage
      • 0 replies
    • Fishing Inc: Legendary Catch +10 Jailed Cheats [ Unlimited Money ]
      Modded/Hacked App: Fishing Inc: Legendary Catch By Snapbreak Games AB
      Bundle ID: com.snapbreak.fishinginc
      App Store Link: https://apps.apple.com/us/app/fishing-inc-legendary-catch/id6770534658?uo=4

       


      🤩 Hack Features

      - Freeze Gold
      - Unlimited Gold -> Will increase instead of decrease.
      - Freeze Casts
      - One-Click Catch
      - Always Perfect Catch
      - Unlock All Fish
      - Complete All Achievements
      - Trigger Kraken Event
      -- No Ads
      -- Deluxe Bundle Purchased
      • 2 replies
    • Grave Dividend +10 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Grave Dividend By ByteBrew IT LLC
      Bundle ID: com.bytebrewit.gravedividend
      App Store Link: https://apps.apple.com/us/app/grave-dividend/id6797710902?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Freeze Enemies
      - Freeze Currencies
      - Unlimited Currencies
      - Unlimited Currencies v2 -> Will increase instead of decrease.
      - Kill All Enemies
      -- No Ads
      • 1 reply
×
  • 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