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.

kyo98-win3.gif


FIGHT FOR WHAT YOU LOVE


0MmYYDS.gif


S6VG3FW.png

Link to comment
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

wvzfS3e.png


 


Image credits to @@Zimon, get yourself a nice signature here

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ;)
Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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?

kyo98-win3.gif


FIGHT FOR WHAT YOU LOVE


0MmYYDS.gif


S6VG3FW.png

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

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

  • Our picks

    • MARVEL Contest of Champions v36.3.0 +11++ Amazing Cheats!
      Modded/Hacked App: MARVEL Contest of Champions By Kabam
      Bundle ID: com.kabam.marvelbattle
      iTunes Link: https://itunes.apple.com/us/app/marvel-contest-of-champions/id896112560?mt=8&uo=4&at=1010lce4


      Hack Features
      - Enemy/AI Doesn't Attack
      - Special Attack/Skill Always Available
      - No Knockbacks When Hit
      - No Knockdowns When Hit
      - Enemy Doesn't Block
      - Auto Win - Whoever Attacks first, loses. Disable AI Doesn't Attack for this to work.
      - One Hit Kill / High Damage - Linked. Attack first or use with Enemy Doesn't Attack.

      Non-Jailbroken version of this hack: https://iosgods.com/topic/44075-marvel-contest-of-champions-v1311-2-cheats-for-jailed-devices/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,963 replies
    • MARVEL Contest of Champions v36.3.0 Hacks +5
      Hacked App: MARVEL Contest of Champions By Kabam
      iTunes Link: https://itunes.apple.com/us/app/marvel-contest-of-champions/id896112560?mt=8&uo=4&at=1010lce4
      Bundle ID: com.kabam.marvelbattle


      Hack Features
      - Enemy Doesn't Attack (working online/offline)
      - Enemy Doesn't Block
      - No Knockbacks - Disables yourself/enemy from getting thrown backwards when you hit or get hit
      - No Knockdowns - Disables yourself or the enemy from getting knocked down when hit

      Non-Jailbroken version of this hack: https://iosgods.com/topic/44075-marvel-contest-of-champions-v1311-2-cheats-for-jailed-devices/
      ViP version of this hack with more features: https://iosgods.com/topic/48646-marvel-contest-of-champions-v1400-7-amazing-cheats/
      Join Contest of Champions Discussions Club: https://iosgods.com/clubs/29-marvel-contest-of-champions-club/

        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 5,999 replies
    • Western Sniper: Wild West v2.3.90 +4
      Modded/Hacked App: Western Sniper: Wild West FPS By AI GAMES FZ LLC
      Bundle ID: wild.west.sniper
      iTunes Store Link: https://apps.apple.com/us/app/western-sniper-wild-west-fps/id1528161193?uo=4


      Hack Features:
      - No Ads
      - God Mode
      - Infinite Money
      - Infinite Ammo


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 0 replies
    • Western Sniper: Wild West v2.3.90 +5
      Modded/Hacked App: Western Sniper: Wild West FPS By AI GAMES FZ LLC
      Bundle ID: wild.west.sniper
      iTunes Store Link: https://apps.apple.com/us/app/western-sniper-wild-west-fps/id1528161193?uo=4



      Hack Features:
      - No Ads
      - God Mode
      - Infinite Money
      - Infinite Ammo
      - Enemy Never Escapes


      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/


        • Haha
        • Like
      • 3 replies
    • Fury Survivor: Pixel Z v2.5 - [ Freeze HP & More ]
      Modded/Hacked App: Fury Survivor: Pixel Z By LT Games
      Bundle ID: com.ltmrxw.ios.ltgames
      iTunes Store Link: https://apps.apple.com/us/app/fury-survivor-pixel-z/id1440734361?uo=4&at=1010lce4

      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:
      - Freeze HP
      - Freeze Food
      - Freeze Water
      - Always Big Drop
      - Unlimited Ammo
      - Add 5 Talent Points
      - Add 10 Talent Points
      - Dumb Enemies

      Will Add More Later!!!

      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
      • 441 replies
    • The Walking Dead: Our World v19.1.3 [Teleport/Location Hack & More]
      Modded/Hacked App: The Walking Dead: Our World By Next Games Oy
      Bundle ID: com.nextgames.ios.ourworld
      iTunes Store Link: https://itunes.apple.com/us/app/the-walking-dead-our-world/id1328359160?mt=8&uo=4&at=1010lce4


      Hack Features:
      - Custom locations (use the Latitude & Longtitude ) http://www.mapcoordinates.net/en use this site to get them 
      - Zombies Do Not Attack  / Easy Headshots
      - God Mode / Zombies Do No Damage
      - Test menu ( enable then toggle gore and back out )
      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
      • 1,277 replies
    • Evertale v2.0.74 - [ Enemies Don't Attack & More ]
      Modded/Hacked App: Evertale By ZigZaGame Inc.
      Bundle ID: com.zigzagame.evertale
      iTunes Store Link: https://itunes.apple.com/us/app/evertale/id1263365153?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:
      - Enemies Don't Attack
      - Spirit Increase
      - High Silver Reward After Battle
      - Guarantee Capture
      - 999 Team Cost 
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 447 replies
    • Evertale v2.0.74 - [ Enemies Don't Attack & More ]
      Modded/Hacked App: Evertale By ZigZaGame Inc.
      Bundle ID: com.zigzagame.evertale
      iTunes Store Link: https://itunes.apple.com/us/app/evertale/id1263365153?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:
      - One Hit Kill - Linked With Enemies
      - Enemies Don't Attack
      - Spirit Increase
      - High Silver Reward After Battle
      - Guarantee Capture
      - 999 Team Cost 
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,012 replies
    • Yu-Gi-Oh! Duel Links v7.0.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,169 replies
    • Yu-Gi-Oh! Duel Links v7.0.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?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:
      - 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,651 replies
    • The Walking Dead: Our World By Next Games Oy (GodMode) +1 Jailed Cheats
      The Walking Dead: Our World By Next Games Oy v1.0.1
      com.nextgames.ios.ourworld
      Requires: iOS 11.0 or later.
      Price: Free
      Updated: 2018-07-17T15:13:09Z
      iTunes URL: https://itunes.apple.com/us/app/the-walking-dead-our-world/id1328359160?mt=8&uo=4&at=1010lce4


      Hack Features:
      - God Mode  (Zombie Cannot kill you)
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,744 replies
    • 神魔之塔 - Tower of Saviors China v2022.510 - [ Weak Enemies ]
      Modded/Hacked App: 神魔之塔 - Tower of Saviors By Mad Head Limited
      Bundle ID: com.madhead.tos.zh
      iTunes Store Link: https://apps.apple.com/us/app/%E7%A5%9E%E9%AD%94%E4%B9%8B%E5%A1%94-tower-of-saviors/id583798880?uo=4
       

      Hack Features:
      - Weak Enemeis - Enemies Have Low HP , DEF & ATK
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 804 replies
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
  • 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 possible user experience without cookies. You can accept or decline our non-essential cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines