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

    • Matching Story v1.78.01 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 112 replies
    • FAIRY TAIL Wizard Chronicle +5 Jailed Cheats
      Modded/Hacked App: FAIRY TAIL Wizard Chronicle By GOODROID,Inc.
      Bundle ID: jp.co.goodroid.fairy
      App Store Link: https://apps.apple.com/us/app/fairy-tail-wizard-chronicle/id6746717958?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
        • Agree
        • Thanks
        • Winner
        • Like
      • 84 replies
    • Solo Commando v1.0.3 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Solo Commando By wonjun choi
      Bundle ID: com.wonjuni.solocommando
      App Store Link: https://apps.apple.com/us/app/solo-commando/id6815699317?uo=4

      🤩 Hack Features

      - Currency Max
      - Never Die
      - Damage Max
      • 0 replies
    • Solo Commando v1.0.3 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Solo Commando By wonjun choi
      Bundle ID: com.wonjuni.solocommando
      App Store Link: https://apps.apple.com/us/app/solo-commando/id6815699317?uo=4

      🤩 Hack Features

      - Currency Max
      - Never Die
      - Damage Max
        • Like
      • 0 replies
    • Marine Squad Idle Pixel RPG v1.0.14 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Marine Squad: Idle Pixel RPG By Sanghee Park
      Bundle ID: com.dotbrick.marinesquad
      App Store Link: https://apps.apple.com/us/app/marine-squad-idle-pixel-rpg/id6797398417?uo=4

      🤩 Hack Features

      - Currency Max / Not Gems only Works
      - Never Die
      - Max Damage
      • 0 replies
    • Marine Squad Idle Pixel RPG v1.0.14 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Marine Squad: Idle Pixel RPG By Sanghee Park
      Bundle ID: com.dotbrick.marinesquad
      App Store Link: https://apps.apple.com/us/app/marine-squad-idle-pixel-rpg/id6797398417?uo=4

      🤩 Hack Features

      - Currency Max / Not Gems only Works
      - Never Die
      - Max Damage
      • 0 replies
    • Ragdoll Gladiator Arena v1.2 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Ragdoll Gladiator Arena By HAPPY GAME COMPANY TEKNOLOJI ANONIM SIRKETI
      Bundle ID: happy.game.ragdollgladiator
      App Store Link: https://apps.apple.com/us/app/ragdoll-gladiator-arena/id6807755643?uo=4

      🤩 Hack Features

      - Add Money
      - Add Vault Tokens
      - Never Die
      - Max Damage
      - Freeze Enemy
      - Dev Menu +7
      • 0 replies
    • Ragdoll Gladiator Arena v1.2 [ +12 jailed ] Currency Max
      Modded/Hacked App: Ragdoll Gladiator Arena By HAPPY GAME COMPANY TEKNOLOJI ANONIM SIRKETI
      Bundle ID: happy.game.ragdollgladiator
      App Store Link: https://apps.apple.com/us/app/ragdoll-gladiator-arena/id6807755643?uo=4

      🤩 Hack Features

      - Add Money
      - Add Vault Tokens
      - Never Die
      - Max Damage
      - Freeze Enemy
      - Dev Menu +7
      • 0 replies
    • Elemental Robots Merge Game v1.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Elemental Robots : Merge Game By Gamify Studio FZ-LLC
      Bundle ID: com.gamifystudio.elementalrobots
      App Store Link: https://apps.apple.com/us/app/elemental-robots-merge-game/id6770425888?uo=4

      🤩 Hack Features

      - No Ads
      - Add Coins
      - God Mode
      - Max Damage
      • 0 replies
    • Elemental Robots Merge Game v1.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Elemental Robots : Merge Game By Gamify Studio FZ-LLC
      Bundle ID: com.gamifystudio.elementalrobots
      App Store Link: https://apps.apple.com/us/app/elemental-robots-merge-game/id6770425888?uo=4

      🤩 Hack Features

      - No Ads
      - Add Coins
      - God Mode
      - Max Damage
      • 0 replies
    • Gear Plants Merge Defense v1.0.19 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Gear Plants: Merge Defense By CSCMOBI VIET NAM TECHNOLOGY JOINT STOCK COMPANY
      Bundle ID: com.cscmobi.gear.plant
      App Store Link: https://apps.apple.com/us/app/gear-plants-merge-defense/id6802927929?uo=4

      🤩 Hack Features

      - Skip Ads
      - Add All Currency
      - Add Crystal / in battle
      - Never Die
      - Max Damage
      • 0 replies
    • Gear Plants Merge Defense v1.0.19 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Gear Plants: Merge Defense By CSCMOBI VIET NAM TECHNOLOGY JOINT STOCK COMPANY
      Bundle ID: com.cscmobi.gear.plant
      App Store Link: https://apps.apple.com/us/app/gear-plants-merge-defense/id6802927929?uo=4

      🤩 Hack Features

      - Skip Ads
      - Add All Currency
      - Add Crystal / in battle
      - Never Die
      - Max Damage
      • 0 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