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

    • Slayer Legend Cheats v600.1.4 +5
      Modded/Hacked App: Slayer Legend By GEAR2
      Bundle ID: com.gear2.growslayer
      iTunes Store Link: https://apps.apple.com/us/app/slayer-legend/id1635712706?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Freeze Currencies


      iOS Hack Download Link: https://iosgods.com/topic/186299-slayer-legend-cheats-v50084-3/
      • 96 replies
    • Lucky Defense! Cheats v1.4.13 +2
      Modded/Hacked App: Lucky Defense! By Crater Co., Ltd.
      Bundle ID: com.percent.ios.luckydefense
      iTunes Store Link: https://apps.apple.com/us/app/lucky-defense/id6482291732?uo=4


      Hack Features:
      - Free Spawn
      - Unlimited Spawn
      - Free In-Game Upgrade


      iOS Hack Download Link: https://iosgods.com/topic/183406-lucky-defense-cheats-v121-3/
      • 184 replies
    • Botworld Adventure Cheats v1.27.1 +7
      Modded/Hacked App: Botworld Adventure By Featherweight Games Pty Limited
      Bundle ID: com.featherweightgames.fx
      iTunes Store Link: https://apps.apple.com/au/app/botworld-adventure/id1456063997?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Infinite Coins
      - Infinite Gems
      - Infinite Items
      - Instant Skill
      - Freeze Mana


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/148273-botworld-adventure-v01617-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/148270-botworld-adventure-cheats-v01617-7/
      • 541 replies
    • Conquest Girls : AFK Idle RPG Cheats v2.11.60 +4
      Modded/Hacked App: Conquest Girls : AFK Idle RPG By Toast.Co.,Ltd
      Bundle ID: com.greenspring.conquestgirls
      iTunes Store Link: https://apps.apple.com/us/app/conquest-girls-afk-idle-rpg/id6670455686?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Attack Speed
      - Multiply Attack Range
      - Freeze Currencies (Some arena / section may not support this)

       


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/189660-conquest-girls-afk-idle-rpg-v21153-jailed-cheats-4/
       


      iOS Hack Download Link: https://iosgods.com/topic/186829-conquest-girls-afk-idle-rpg-cheats-v21153-4/
      • 27 replies
    • My Talking Tom 2 Cheats v5.0.4 +2
      Modded/Hacked App: My Talking Tom 2 by Outfit7 Limited
      Bundle ID: com.outfit7.mytalkingtom2
      iTunes Store Link: https://itunes.apple.com/us/app/my-talking-tom-2/id1337578317?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Coins (Spend some/ Get some)
      - No Ads


      Hack Download Link: https://iosgods.com/topic/82755-arm64-my-talking-tom-2-cheats-v102002-1/
      • 710 replies
    • Battle Camp Cheats v5.35.0 +2
      Modded/Hacked App: Battle Camp By Battlecamp AB
      Bundle ID: com.battlecamp.monsters
      iTunes Store Link: https://apps.apple.com/us/app/battle-camp/id1555773592?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      iOS Hack Download Link: https://iosgods.com/topic/147532-battle-camp-cheats-v5162-2/
      • 129 replies
    • Real Racing 3 Cheats v13.1.7 +4
      Modded/Hacked App: Real Racing 3 By Electronic Arts Inc.
      Bundle ID: com.ea.realracing3.inc
      iTunes Store Link: https://apps.apple.com/us/app/real-racing-3/id556164008?uo=4


      Hack Features:
      - Free Store
      - Freeze M$
      - Freeze R$
      - Freeze Gold


      iOS Hack Download Link: https://iosgods.com/topic/147926-real-racing-3-cheats-all-versions-4/
        • Like
      • 972 replies
    • Candy Crush Saga v1.295.1 Jailed Cheats +3
      Modded/Hacked App: Candy Crush Saga By King.com Limited
      Bundle ID: com.midasplayer.apps.candycrushsaga
      iTunes Store Link: https://apps.apple.com/us/app/candy-crush-saga/id553834731?uo=4


      Hack Features:
      - Infinite Life
      - Infinite Booster
      - Infinite Move


      Jailbreak required hack(s): https://iosgods.com/topic/190447-candy-crush-saga-cheats-v12941-3/


      iOS Hack Download IPA Link: https://iosgods.com/topic/190448-candy-crush-saga-v12941-jailed-cheats-3/
      • 30 replies
    • AdVenture Communist v6.42.0 +2 Cheats
      Modded/Hacked App: AdVenture Communist By Hyper Hippo Publishing Ltd.
      Bundle ID: com.kongregate.mobile.adventurecommunist
      iTunes Store Link: https://apps.apple.com/us/app/adventure-communist/id1225683141?uo=4


      Hack Features:
      - Freeze Currencies
      - Unlimited Cards [Get Some]


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/149919-adventure-communist-v6392-2-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/149902-adventure-communist-v6392-2-cheats/
      • 116 replies
    • AdVenture Capitalist Cheats v9.5.4 +1
      Modded/Hacked App: AdVenture Capitalist By Hyper Hippo Publishing Ltd.
      Bundle ID: com.kongregate.mobile.adventurecapitalist
      iTunes Store Link: https://apps.apple.com/us/app/adventure-capitalist/id927006017?uo=4


      Hack Features:
      - Freeze Currencies

       
      Free Non-Jailbroken Hack:  https://iosgods.com/topic/82751-adventure-capitalist-v940-jailed-cheats-1/


      Hack Download Link: https://iosgods.com/topic/78370-adventure-capitalist-cheats-v940-1/
      • 1,175 replies
    • Smurfs' Village Cheats v2.73.2 +1
      Modded/Hacked App: Smurfs' Village By Flashman Studios LLC
      Bundle ID: com.capcommobile.smurfs
      iTunes Store Link: https://itunes.apple.com/us/app/smurfs-village/id399648212?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Gold (Spend some)
      - Infinite SmurfBerries (Spend some)


      Hack Download Link: https://iosgods.com/topic/75948-arm64-smurfs-village-cheats-v1680-2/
      • 437 replies
    • Hollywood Story: Fashion Star Cheats v12.9.6 +4
      Modded/Hacked App: Hollywood Story By nanobitsoftware.com
      Bundle ID: com.nanobitsoftware.hollywoodstory
      iTunes Store Link: https://itunes.apple.com/us/app/hollywood-story/id876656488?mt=8&uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Infinite Gems
      - Infinite Energy
      - Infinite Stars Point
       


      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/
        • Like
      • 769 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