Jump to content

Need Help With -(void)link { Error for My Patcher


FateEX

24 posts in this topic

Recommended Posts

This is the xxx.mm file I'm using for my .deb :(

#import <Preferences/Preferences.h>
#import <UIKit/UIKit.h>

@interface
BraveFrontierCheats1241ListController:
PSListController {
}
@end

@implementation
BraveFrontierCheats1241ListController
- (id)specifiers {
         if(_specifiers == nil) {
                 _specifiers = [[self loadSpecifiersFromPlistName:@"BraveFrontierCheats1241" target:self] retain];
         }
         return _specifiers;

- (void)link {
     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.iosgods.com/topic/4158-VIP-exclusive-brave-frontier-global-1241-14/"]];
}
}
@end

// vim:ft=objc

This is the MobileTerminal error I keep getting :/

BraveFrontierCheats1241.mm:15:1: error: invalid
       argument type 'void' to unary expression
- (void)link {
^ ~~~~~~~~~~

Does anyone have any ideas or suggestions? I am trying to make a link back to iOSGods for my patcher.

Link to comment
https://iosgods.com/topic/4171-need-help-with-voidlink-error-for-my-patcher/
Share on other sites

  • Replies 23
  • Created
  • Last Reply

u need to add a } before the - (void)link method, without it, ur essentially adding - (void)link method inside another method itself 

like this:

 

#import <Preferences/Preferences.h>
#import <UIKit/UIKit.h>

@interface
BraveFrontierCheats1241ListController:
PSListController {
}
@end

@implementation
BraveFrontierCheats1241ListController
- (id)specifiers {
         if(_specifiers == nil) {
                 _specifiers = [[self loadSpecifiersFromPlistName:@"BraveFrontierCheats1241" target:self] retain];
         }
         return _specifiers;
}

- (void)link {
     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.iosgods.com/topic/4158-VIP-exclusive-brave-frontier-global-1241-14/"]];
}
@end

Oh! Wow. Well that solves that, but now I'm getting a new error.

It says symbols not found?

pyDtYDw.png

add this to the top of your tweak.xm

 

#import <UIKit/UIKit.h>
And add the following code to the top of your makefile or your hack will not work

 

ARCHS = armv7 arm64
TARGET = iphone:clang:YOURSDKNUMBERHERE

add this to the top of your tweak.xm

 

#import <UIKit/UIKit.h>
And add the following code to the top of your makefile or your hack will not work

 

ARCHS = armv7 arm64
TARGET = iphone:clang:YOURSDKNUMBERHERE

 

1. Statement : agreed

2. Statement : No it will work eitherway. However he can add

export ARCHS = arm64 armv7

to give it 64-Bit support if his device is not (Only neccessary when it's below iPhone 5S)

 

clang is not needed to be added because it's automatically forced.

1. Statement : agreed

2. Statement : No it will work eitherway. However he can add

 

export ARCHS = arm64 armv7
to give it 64-Bit support if his device is not (Only neccessary when it's below iPhone 5S)

 

clang is not needed to be added because it's automatically forced.

If he doesn't set target for clang, it will force it like you said, but when clang is forced, the binary is only armv7. Therefore, it will still have no effect. Always remember to set environmental variables like clang ;)

If he doesn't set target for clang, it will force it like you said, but when clang is forced, the binary is only armv7. Therefore, it will still have no effect. Always remember to set environmental variables like clang ;)

 

No :mellow:

 

But I think the errors come from his /theos/include folder. When a header is outdated or from a different ARM device it won't work. @ have you modified or replaced any headers in the past few days ?

No :mellow:

 

But I think the errors come from his /theos/include folder. When a header is outdated or from a different ARM device it won't work. @ have you modified or replaced any headers in the past few days ?

I used @'s fix for the include folder http://iosgods.com/topic/2674-preferencesh-file-not-found-error-when-compling-patcherhelp/?p=39687

 

That's about it. Btw, where do I find my SDKNumber?

Delete your /include folder and replace it with mine (https://www.dropbox.com/s/o0a1ftt43idtvbi/include.zip?dl=0)

Check the directory you saved te SDK to get the version. The extension is iPhoneOSXX.X.sdk

No :mellow:

 

But I think the errors come from his /theos/include folder. When a header is outdated or from a different ARM device it won't work. @ have you modified or replaced any headers in the past few days ?

Yes :mellow:

I had been having the exact same problem for a while until I read when Alcatraz give the answer to atheoi. I am talking from experience ;)

Also, you don't need to "export ARCHS" if you're compiling on mobile ;)

As for what you said about the headers, you can get the latest headers from here: https://github.com/rpetrich/iphoneheaders

 

@@Javi Tech Pm me and I can show you how to get a copy of the IOSurfaceAPI.h since it's not free or open source

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Longleaf Valley: Merge & Match v1.26.34 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Longleaf Valley: Merge & Match By TreesPlease Games Ltd
      Bundle ID: com.treespleasegames.merge1
      iTunes Store Link: https://apps.apple.com/us/app/longleaf-valley-merge-match/id1573565989?uo=4


      Hack Features:
      - Unlimited Currencies -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Longleaf Valley: Merge & Plant ( All Versions ) +1++ Cheats [ Unlimited Currencies ] - 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/
      • 25 replies
    • MIST: Horror Idle Survival RPG v1.5.1 +4 Jailed Cheats [ Damage Multiplier ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Jailbreak required hack(s): [Mod Menu Hack] MIST: Horror Idle Survival RPG v1.2 +4 Cheats [ Damage Multiplier ] - 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/
      • 11 replies
    • MIST: Horror Idle Survival RPG v1.5.1 +4 Cheats [ Damage Multiplier ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] MIST: Horror Idle Survival RPG v1.2 +4 Jailed Cheats [ Damage Multiplier ] - 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/
      • 38 replies
    • Secret Puzzle Society v1.15.1 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Secret Puzzle Society By Wildlife Studios, Inc
      Bundle ID: com.arizonags.puzzlesocietyalpha
      iTunes Store Link: https://apps.apple.com/us/app/secret-puzzle-society/id6449197556?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Clues -> Earn or spend some.
      - Unlimited Lives -> Earn or spend some.
      - Auto Win -> Use a move.


      Jailbreak required hack(s): [Mod Menu Hack] Secret Puzzle Society v1.6.3 +4 Cheats [ Unlimited Currencies ] - 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/
      • 6 replies
    • Secret Puzzle Society v1.15.1 +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Secret Puzzle Society By Wildlife Studios, Inc
      Bundle ID: com.arizonags.puzzlesocietyalpha
      iTunes Store Link: https://apps.apple.com/us/app/secret-puzzle-society/id6449197556?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Clues -> Earn or spend some.
      - Unlimited Lives -> Earn or spend some.
      - Auto Win -> Use a move.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Secret Puzzle Society v1.6.3 +4 Jailed Cheats [ Unlimited Currencies ] - 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/
      • 5 replies
    • Longleaf Valley: Merge & Match v1.26.34 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Longleaf Valley: Merge & Match By TreesPlease Games Ltd
      Bundle ID: com.treespleasegames.merge1
      iTunes Store Link: https://apps.apple.com/us/app/longleaf-valley-merge-match/id1573565989?uo=4


      Hack Features:
      - Unlimited Currencies -> Spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Longleaf Valley: Merge & Plant v1.10.48 +1++ Jailed Cheats [ Unlimited Currencies ] - 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/
      • 8 replies
    • Football Superstar 2: USA Ed. v1.0.19 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Football Superstar 2: USA Ed. By Scott Baillie
      Bundle ID: com.lazyboydevelopments.usafootysuperstar2
      iTunes Store Link: https://apps.apple.com/us/app/football-superstar-2-usa-ed/id6449435265?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Exp


      Jailbreak required hack(s): [Mod Menu Hack] Football Superstar 2: USA Ed. v1.0.18 +2 Cheats [ Unlimited Currencies ] - 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/
      • 11 replies
    • Football Superstar 2: USA Ed. v1.0.19 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Football Superstar 2: USA Ed. By Scott Baillie
      Bundle ID: com.lazyboydevelopments.usafootysuperstar2
      iTunes Store Link: https://apps.apple.com/us/app/football-superstar-2-usa-ed/id6449435265?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Exp


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Football Superstar 2: USA Ed. v1.0.18 +2 Jailed Cheats [ Unlimited Currencies ] - 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/
      • 3 replies
    • Screw Jam v3.8.0 +20++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Screw Jam By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.quok.screwJam
      iTunes Store Link: https://apps.apple.com/us/app/screw-jam/id6471490579?uo=4


      Hack Features:
      - Debug Menu -> Head into Settings and toggle the Contact Us button. To close out the menu, restart the game.


      Jailbreak required hack(s): [Mod Menu Hack] Screw Jam v2.1.0 +20++ Cheats [ Debug Menu ] - 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/
      • 19 replies
    • Football Superstar 2 v1.0.47 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Football Superstar 2 By Lazy Boy Developments
      Bundle ID: com.lazyboydevelopments.footballsuperstar2
      iTunes Store Link: https://apps.apple.com/us/app/football-superstar-2/id1607289341
       

      Hack Features:
      - Unlimited Cash
      - Unlimited Exp


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/167872-football-superstar-2-v1011-1-jailed-cheat-free-i-ap/
      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
    • Football Superstar 2 v1.0.47 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Football Superstar 2 By Lazy Boy Developments
      Bundle ID: com.lazyboydevelopments.footballsuperstar2
      iTunes Store Link: https://apps.apple.com/us/app/football-superstar-2/id1607289341
       

      Hack Features:
      - Unlimited Cash
      - Unlimited Exp


      Jailbreak required hack(s): https://iosgods.com/topic/168893-football-superstar-2-v1011-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/
        • Informative
        • Like
      • 297 replies
    • Screw Jam v3.8.0 +20++ Cheats [ Debug Menu ]
      Modded/Hacked App: Screw Jam By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.quok.screwJam
      iTunes Store Link: https://apps.apple.com/us/app/screw-jam/id6471490579?uo=4


      Hack Features:
      - Debug Menu -> Head into Settings and toggle the Contact Us button. To close out the menu, restart the game.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Screw Jam v2.1.0 +20++ Jailed Cheats [ Debug Menu ] - 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/
      • 16 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