Jump to content

11 posts in this topic

Recommended Posts

Posted

Hello when I tried using this template 

I had an error which says:

Tweak.xm:53:48: error: use of undeclared identifier 'options'                                                                                

    [[UIApplication sharedApplication] openURL:options:completionHandler: [NSURL URLWithString: @"https://iosgods.com/forum/13-free-jailbroken-cydia-cheats/"]];                                                                                                                           

                                               ^                                                                                             

Tweak.xm:53:56: error: use of undeclared identifier 'completionHandler'                                                                      

    [[UIApplication sharedApplication] openURL:options:completionHandler: [NSURL URLWithString: @"https://iosgods.com/forum/13-free-jailbroken-cydia-cheats/"]];                                                                                                                           

                                                       ^                                                                                     

Tweak.xm:57:40: error: instance method '-openURL:::' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]                 

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

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

/var/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:105:40: note: receiver is instance of class declared here                                                                                                                               

NS_CLASS_AVAILABLE_IOS(2_0) @interface UIApplication : UIResponder                                                                           

                                       ^                                                                                                     

Tweak.xm:57:48: error: use of undeclared identifier 'options'                                                                                

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

                                               ^                                                                                             

Tweak.xm:57:56: error: use of undeclared identifier 'completionHandler'                                                                      

    [[UIApplication sharedApplication] openURL:options:completionHandler: [NSURL URLWithString: @"https://iosgods.com/clubs/"]]

Posted

Did you move or change anything in the Tweak.xm?

Posted (edited)
3 hours ago, DiDA said:

Did you move or change anything in the Tweak.xm?

@DiDA I removed a comment in the code, here is my tweak.xm:

 

@import Foundation;

@import UIKit;

#import <substrate.h>

#import "vm_writeData.h"

 

// To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-offsets/

// To Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject/

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.majdawwad.hotspot.plist"

 

inline bool GetPrefBool(NSString *key) {

        return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

 

// Add your MS/Flex/MSHook Code here. Examples can be found on iOSGods.

 

%hook AfUserAccount

-(bool) isElite {

if(GetPrefBool(@"key1")) {

return TRUE;

}

return %orig;

}

%end

 

%hook AFUserAccount

-(void) setIsElite:(bool)arg1 {

if(GetPrefBool(@"key1")) {

arg1 = TRUE;

}

%orig(arg1);

}

%end

 

%hook CLSAnalyticsMetadataController

+(bool) hostJailbroken {

if(GetPrefBool(@"key2")) {

return FALSE;

}

return %orig;

}

%end

 

 

 

 

// Automatic Popup Code

void setup() {

    UIAlertController *igcredits = [UIAlertController alertControllerWithTitle:@"Made for iOSGods.com" message:@"Hotspot Sheild VPN Cheats for iOSGods.com!\n\nVisit the hack's official topic on iOSGods for more information and updates!" preferredStyle:UIAlertControllerStyleAlert];

 

    UIAlertAction *iosgods = [UIAlertAction actionWithTitle:@"Visit iOSGods.com!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){

    [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://iosgods.com/forum/13-free-jailbroken-cydia-cheats/"]];

    }];

 

    UIAlertAction *clubs = [UIAlertAction actionWithTitle:@"Visit the Clubs!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){

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

    }];

 

    UIAlertAction *thankyou = [UIAlertAction actionWithTitle:@"Thank you" style:UIAlertActionStyleCancel handler:nil];

 

    [igcredits addAction:iosgods];

    [igcredits addAction:clubs];

    [igcredits addAction:thankyou];

 

    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:igcredits animated:true completion:nil];

}

 

void unsubscribeToLaunchEvent(void);

 

static void didFinishLaunching(CFNotificationCenterRef center, void *observer,

                               CFStringRef name, const void *object, CFDictionaryRef info) {

    setup();

    unsubscribeToLaunchEvent();

}

 

const char *authObserver = "authObserver";

 

void subscribeToLaunchEvent() {

    CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), authObserver, &didFinishLaunching,

                                    (CFStringRef)UIApplicationDidFinishLaunchingNotification,

                                    NULL, CFNotificationSuspensionBehaviorDrop);

}

 

void unsubscribeToLaunchEvent() {

    CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), authObserver,

                                       (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL);

}

 

__attribute__((constructor)) static void initialize() {

    subscribeToLaunchEvent();

}

 

Updated by The Epic Gamer
Posted

Strange, I'm able to compile on the iOS 9 SDK. :wonder:

Posted (edited)
4 minutes ago, DiDA said:

Strange, I'm able to compile on the iOS 9 SDK. :wonder:

I have the iOS 10 sdk, should I change it to the iOS 9 sdk?

Updated by The Epic Gamer
Posted
Just now, The Epic Gamer said:

I have the iOS 10 sdk, should I change it to the iOS 9 sdk?

You can try, yes.

Posted
Just now, DiDA said:

You can try, yes.

Ok, can you give me a link to download the sdk, please

2 minutes ago, DiDA said:

You can try, yes.

Never mind, I will just run the command 

theosinstaller 9.3
Posted
13 minutes ago, DiDA said:

@DiDA I reinstalled theos, replaced sdks and I made a new patcher but I had one error which is this:

==> Linking bundle hotspotpatcher (arm64)…                                                                                                   

ld: warning: directory not found for option '-F/var/theos/sdks/iPhoneOS9.3.sdk/System/Library/PrivateFrameworks'                             

ld: framework not found Preferences                                                                                                          

clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)                                                          

make[4]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/hotspotpatcher/.theos/obj/arm64/hotspotpatcher.bundle/hotspotpatcher] Error 1                                                                                                                                        

Posted
35 minutes ago, The Epic Gamer said:

@DiDA I reinstalled theos, replaced sdks and I made a new patcher but I had one error which is this:

==> Linking bundle hotspotpatcher (arm64)…                                                                                                   

ld: warning: directory not found for option '-F/var/theos/sdks/iPhoneOS9.3.sdk/System/Library/PrivateFrameworks'                             

ld: framework not found Preferences                                                                                                          

clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)                                                          

make[4]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/hotspotpatcher/.theos/obj/arm64/hotspotpatcher.bundle/hotspotpatcher] Error 1                                                                                                                                        

I fixed it by downngrading the SDK to 9.2 and now everything is working perfectly 

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

    • [ The Battle Cats JP ] にゃんこ大戦争 Cheats v14.4.1 +3
      Modded/Hacked App: にゃんこ大戦争 By ponos corporation
      Bundle ID: jp.co.ponos.battlecats
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89/id547145938?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Infinite Cash
      - OHK Linked w/ Enemy
      - Infinite Cat Foods & EXP*

       

      Non-Jailbroken Hack: https://iosgods.com/topic/194335-the-battle-cats-jp-%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89-v1432-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194334-the-battle-cats-jp-%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89-cheats-v1432-3/
      • 14 replies
    • Warhammer 40,000: Tacticus v1.29.19 +4 Cheats
      Modded/Hacked App: Warhammer 40,000: Tacticus By Snowprint Studios AB
      Bundle ID: com.snowprintstudios.tacticus
      iTunes Store Link: https://apps.apple.com/us/app/warhammer-40-000-tacticus/id1599937506?uo=4

      Hack Features:
      - Always Win [ even if all your characters die, you win ]
      - Custom Ability Stats
      - Ability Always Available
      - Game Speed Multiplier

      Note: Use characters that do ability attack to multiple enemies like Varro Tigurius & Bellator


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/163492-warhammer-40000-tacticus-v1133-3-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/163377-warhammer-40000-tacticus-v1133-4-cheats/
      • 294 replies
    • Hunt Royale: Action RPG Battle v3.9.1 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       
       

      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
      • 109 replies
    • Hunt Royale: Action RPG Battle v3.9.1 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       


      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
      • 20 replies
    • Tasty Travels: Merge Game v31.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      • 8 replies
    • Tasty Travels: Merge Game v31.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      • 9 replies
    • Royal Kingdom v19048 +4 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Jailbreak required hack(s): [Mod Menu Hack] Royal Kingdom v3987 +4 Cheats [ Unlimited Coins ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 133 replies
    • Royal Kingdom v19048 +4 Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Royal Kingdom v3987 +4 Jailed Cheats [ Unlimited Coins ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 80 replies
    • House Flipper Home Design v1.532 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: House Flipper Home Design By PLAYWAY SPOLKA AKCYJNA
      Bundle ID: com.imaginalis.HouseFlipperMobile
      iTunes Store Link: https://apps.apple.com/us/app/house-flipper-home-design/id1517373437
       

      Hack Features:
      - Unlimited Cash -> Exchange Flipcoins for Cash to earn an unlimited amount.
      - Unlimited Flipcoins -> Exchange Flipcoins for Cash to earn an unlimited amount.


      Jailbreak required hack(s): https://iosgods.com/topic/169137-exclusive-house-flipper-home-design-all-versions-2-cheats-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 141 replies
    • Train of Hope: Survival Game v1.7.0 +3 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Train of Hope: Survival Game By Samfinaco LLC
      Bundle ID: com.samfinaco.tos
      iTunes Store Link: https://apps.apple.com/us/app/train-of-hope-survival-game/id6636482655?uo=4

       
       

      🤩 Hack Features

      - Unlimited Resources -> Will increase instead of decrease.
      - Unlimited Hero Experience -> Will increase instead of decrease.
      - Free In-App Purchases
      • 22 replies
    • Train of Hope: Survival Game v1.7.0 +3 Cheats [ Unlimited Everything ]
      Modded/Hacked App: Train of Hope: Survival Game By Samfinaco LLC
      Bundle ID: com.samfinaco.tos
      iTunes Store Link: https://apps.apple.com/us/app/train-of-hope-survival-game/id6636482655?uo=4

       
       

      🤩 Hack Features

      - Unlimited Resources -> Will increase instead of decrease.
      - Unlimited Hero Experience -> Will increase instead of decrease.
      - Free In-App Purchases
      • 37 replies
    • Racing Kingdom v1.0.0 +2 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: Racing Kingdom By SUPERGEARS OYUN YAZILIM TEKNOLOJI VE PAZARLAMA ANONIM SIRKETI
      Bundle ID: com.supergears.racingkingdom
      iTunes Store Link: https://apps.apple.com/us/app/racing-kingdom/id6468027706?uo=4

       


      🚀 Hack Features

      - Auto Win
      - Freeze Rival


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] Racing Kingdom v0.33.6 +2 Cheats [ Auto Win ] - ViP Cheats - iOSGods
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 21 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