Jump to content

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


Go to solution Solved by AnotherLurker,

24 posts in this topic

Recommended Posts

Posted

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.

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted

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
Posted

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

It says symbols not found?

pyDtYDw.png

Posted
  On 1/30/2015 at 12:56 AM, Javi Tech said:

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
Posted
  On 1/30/2015 at 10:53 PM, KingRalph said:

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.

Posted (edited)
  On 1/30/2015 at 11:03 PM, castix said:

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 ;) Updated by KingRalph
Posted
  On 1/30/2015 at 11:20 PM, KingRalph said:

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 ?

Posted
  On 1/30/2015 at 11:26 PM, castix said:

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?

Posted (edited)
  On 1/30/2015 at 11:26 PM, castix said:

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

Updated by KingRalph

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

    • Yukon: Family Adventure v1.57.1 [ +4++ Cheats ] Everything Unlimited
      Modded/Hacked App: Yukon: Family Adventure By Enixan Europe Limited
      Bundle ID: com.enixan.yukon.family.adventure
      iTunes Store Link: https://apps.apple.com/us/app/yukon-family-adventure/id6455041311?uo=4


      🤩 Hack Features

      - Gems

      - Energy

      - Items

      - EXP
        • Agree
        • Thanks
        • Winner
        • Like
      • 10 replies
    • Yukon: Family Adventure v1.57.1 [ +4++ Jailed ] Everything Unlimited
      Modded/Hacked App: Yukon: Family Adventure By Enixan Europe Limited
      Bundle ID: com.enixan.yukon.family.adventure
      iTunes Store Link: https://apps.apple.com/us/app/yukon-family-adventure/id6455041311?uo=4


      🤩 Hack Features

      - Gems

      - Energy

      - Items

      - EXP
        • Informative
        • Haha
        • Thanks
        • Like
      • 12 replies
    • Car Simulator 2 Cheats v1.55.7 +2
      Modded/Hacked App: Car Simulator 2 by Pavel Gavrilyuk
      Bundle ID: com.oppanagames.car.simulator
      iTunes Store Link: https://apps.apple.com/us/app/car-simulator-2/id1456091972?uo=4&at=1010lce4


      Hack Features:
      - Infinite Coins
      - Free iAP (Use with LocaliAPPStore or iOSGods iAP)
       

      iOS Hack Download Link: https://iosgods.com/topic/119157-arm64-car-simulator-2-cheats-all-versions-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 109 replies
    • The Seven Deadly Sins Cheats v2.77.0 +5
      Modded/Hacked App: The Seven Deadly Sins by Netmarble Corporation
      Bundle ID: com.netmarble.nanagb
      iTunes Store Link: https://apps.apple.com/us/app/the-seven-deadly-sins/id1475440231?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK
      - Infinite MP


      iOS Hack Download Link: https://iosgods.com/topic/131686-arm64-the-seven-deadly-sins-cheats-v117-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,038 replies
    • Kritika: The White Knights v5.14.2 +3 [God Mode & Damage Multiplier]
      Modded/Hacked App: Kritika: The White Knights By GAMEVIL Inc.
      Bundle ID: com.gamevil.kritikam.ios.apple.global.normal
      iTunes Store Link: https://itunes.apple.com/us/app/kritika-the-white-knights/id865958296
       

      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate or Substitute.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - God Mode Works Everywhere
      - Set Damage Multiplier - Do not set it too high, you will get kicked out if you do.
      - No Skill Cooldown 

      All features are unlinked!
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,980 replies
    • Injustice: Gods Among Us v3.5 +6++ Jailed Cheats [Unlimited Currencies + More]
      Modded/Hacked App: Injustice: Gods Among Us by Warner Bros. Entertainment
      Bundle ID: com.wb.Injustice.Brawler2013
      iTunes Store Link: https://itunes.apple.com/us/app/injustice-gods-among-us/id575658129?mt=8&uo=4&at=1010lce4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Unlimited Currencies - Earn some to receive an unlimited amount of that specific currency.
      - Unlimited Stamina - Will increase instead of decrease.
      - Godmode
      - One-Hit Kill
      - Max Player Level - Play a battle with that specific character to get it max level.
      - Anti-Ban - Untested. Might be useless since the game's old now, and I wasn't banned testing this hack without this enabled anyway.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,971 replies
    • Injustice: Gods Among Us v3.5 - [ Unlimited Currencies & More ]
      Modded/Hacked App: Injustice: Gods Among Us by Warner Bros. Entertainment
      Bundle ID: com.wb.Injustice.Brawler2013
      iTunes Store Link: https://itunes.apple.com/us/app/injustice-gods-among-us/id575658129?mt=8&uo=4&at=1010lce4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Currencies - Earn some to receive an unlimited amount of that specific currency.
      - Unlimited Stamina - Will increase instead of decrease.
      - Godmode
      - One-Hit Kill
      - Increased Critical Chance
      - Increased Critical Damage
      - Unlimited Gear Score
      - Max Player Level - Play a battle with that specific character to get it max level.
      - Survival Mode Unlocked
      - Hacked Saved Data Check Bypassed
      - Anti-Ban - Untested. Might be useless since the game's old now, and I wasn't banned testing this hack without this enabled anyway.

      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app. This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,991 replies
    • [ViP Hack] WarFriends v5.11.0 +6 Cheats
      Modded/Hacked App: WarFriends: PvP Shooter Game By Chillingo Ltd
      Bundle ID: com.chillingo.warfriends
      iTunes Link: https://itunes.apple.com/us/app/warfriends-pvp-shooter-game/id979873043


      Hack Features:
      - Debug Menu -> Most/Everything from previous hack has been patched/removed. However, it will still show you some in-game stuff.
      - Free Weapon Upgrades. Instant Weapon Upgrade Delivery Times!
      - Unlimited Clips/Ammo -> Works online & offline
      - No Weapon Reload / Unlimited Ammo in Clip -> Works online & offline
      - One Hit Kill Enemies / High Damage -> Buggy Online, works well offline. Linked with enemy, so hit them first.
      - Gun Fire Rate x1000 -> Shoot bullets really, really fast. Works online too, linked to enemy. One Hit Kill Alternative if you can aim.
      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap your screen with 3 fingers simultaneously.

       

      Non-Jailbroken Version of this hack: https://iosgods.com/topic/44193-warfriends-v140-3-cheats-ios-10/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,767 replies
    • Fishing Clash v1.0.358 +3 Cheats
      Modded/Hacked App: Fishing Clash: Fish Game 2019 by Ten Square Games S.A.
      Bundle ID: com.tensquaregames.letsfish2
      iTunes Store Link: https://apps.apple.com/us/app/fishing-clash-fish-game-2019/id1151811380


      Hack Features:
      - Combo Always Active
      - Centered Line -> The line is always in the center zone. I didn't test enough but worked for 20 games. Duels too.
      - Line Never Breaks
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,334 replies
    • Yu-Gi-Oh! Duel Links v9.8.0 - [ Always Best Tactics & More ]
      Modded/Hacked App: Yu-Gi-Oh! Duel Links By KONAMI
      Bundle ID: jp.konami.yugiohmobile
      iTunes Store Link: https://itunes.apple.com/us/app/yu-gi-oh-duel-links/id1068378177


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      -- Always The Best Tactics
      - Shows
      -- Enemies Hand Card Show
      - Show Monster And Status
      -- Enemies Deck Card Shows
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,406 replies
    • Yu-Gi-Oh! Duel Links v9.8.0 - [ Auto-Play & More ]
      Modded/Hacked App: Yu-Gi-Oh! Duel Links By KONAMI
      Bundle ID: jp.konami.yugiohmobile
      iTunes Store Link: https://itunes.apple.com/us/app/yu-gi-oh-duel-links/id1068378177
       

      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Auto-Play - Don't Work In PVP 
      -- Always The Best Tactics
      - Face Up Card
      -- Enemies Hand Card Show
      - Show Monster And Status
      -- Enemies Deck Card Shows
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,850 replies
    • Towerlands - tower defense TD v3.6.2 +2 Cheats
      Modded/Hacked App: Towerlands - tower defense TD By CHERNYE MEDVEDI, OOO
      Bundle ID: mobi.blackbears.ios.towerlands
      iTunes Store Link: https://apps.apple.com/us/app/towerlands-tower-defense-td/id1491901979?uo=4



      Hack Features:
      - Unlimited Gold
      - Unlimited Gems


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 345 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