Jump to content

getting error when make package %hook (void) pass-through need help


Go to solution Solved by AnotherLurker,

23 posts in this topic

Recommended Posts

Posted (edited)

I do not think he's trying to null them

Yea, just realized

 

If it's just pass-through, you should just remove the methods from your hooks.

if it's that necessary to include the methods, just do:

return %orig();
Updated by AnotherLurker
Posted

I do not think he's trying to null them

 

Dida bro please can you help me a bit, i have tried everything even your flex converter with no luck ;( please take a look at those picture i uploaded on imgur https://imgur.com/gallery/S4T6G i need help with those return PASS-THROUGH and the ones with value and argument on same time. please

 

Yea, just realized

 

If it's just pass-through, you should just remove the methods from your hooks.

if it's that necessary to include the methods, just do:

return %orig();

 

ok i will try now

Posted

Dida bro please can you help me a bit, i have tried everything even your flex converter with no luck ;( please take a look at those picture i uploaded on imgur https://imgur.com/gallery/S4T6G i need help with those return PASS-THROUGH and the ones with value and argument on same time. please

"Pass-through" is the same as not modifying the method at all. You don't need to include it in your tweak because you're not changing anything on it.

Posted

yeah I got it now it's a success:) but still I get error with those one https://imgur.com/gallery/lP6Dn

 

%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
arg1 = TRUE;
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
arg2 = TRUE;
}
%end
 
%hook UBAddress
-(void)setDisplayTitle:(id)arg1
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
arg1 = TRUE;
}

 

%end

 

Yea, just realized

 

If it's just pass-through, you should just remove the methods from your hooks.

if it's that necessary to include the methods, just do:

return %orig();

 

 
yeah I got it now it's a success:) but still I get error with those one https://imgur.com/gallery/lP6Dn
 
%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
arg1 = TRUE;
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
arg2 = TRUE;
}
%end
 
%hook UBAddress
-(void)setDisplayTitle:(id)arg1
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
arg1 = TRUE;
}

 

%end
Posted

 

%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
arg1 = TRUE;
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
arg2 = TRUE;
}
%end
 
%hook UBAddress
-(void)setDisplayTitle:(id)arg1
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
arg1 = TRUE;
}

 

%end

 

 
yeah I got it now it's a success:) but still I get error with those one https://imgur.com/gallery/lP6Dn
 
%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
arg1 = TRUE;
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
arg2 = TRUE;
}
%end
 
%hook UBAddress
-(void)setDisplayTitle:(id)arg1
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
arg1 = TRUE;
}

 

%end

 

%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    %orig(TRUE);
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
    %orig(arg1, TRUE);
}
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    %orig(arg1, TRUE);
}
 
%end
Posted (edited)
%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    %orig(TRUE);
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
    %orig(arg1, TRUE);
}
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    %orig(arg1, TRUE);
}
 
%end

getting error...:(

 

Password:

iPhone:/var/mobile root# cd /var/uberx

iPhone:/var/uberx root# make package

> Making all for tweak uberx…

==> Preprocessing Tweak.xm…

==> Compiling Tweak.xm (armv7)…

Tweak.xm:86:162: error: expected function body after function

declarator

..._LOGOS_SELF_CONST self, SEL _cmd)(id)arg1 isEnabled:(bool)ar...

^

1 error generated.

make[3]: *** [/var/uberx/.theos/obj/debug/armv7/Tweak.xm.8b659425.o] Error 1

make[2]: *** [/var/uberx/.theos/obj/debug/armv7/uberx.dylib] Error 2

make[1]: *** [internal-library-all_] Error 2

make: *** [uberx.all.tweak.variables] Error 2

iPhone:/var/uberx root#

Updated by Gav1474
Posted

getting error... :(

 

Password:

iPhone:/var/mobile root# cd /var/uberx

iPhone:/var/uberx root# make package

> Making all for tweak uberx…

==> Preprocessing Tweak.xm…

==> Compiling Tweak.xm (armv7)…

Tweak.xm:86:162: error: expected function body after function

declarator

..._LOGOS_SELF_CONST self, SEL _cmd)(id)arg1 isEnabled:(bool)ar...

^

1 error generated.

make[3]: *** [/var/uberx/.theos/obj/debug/armv7/Tweak.xm.8b659425.o] Error 1

make[2]: *** [/var/uberx/.theos/obj/debug/armv7/uberx.dylib] Error 2

make[1]: *** [internal-library-all_] Error 2

make: *** [uberx.all.tweak.variables] Error 2

iPhone:/var/uberx root#

 

What's your full Tweak.xm

Posted

What's your full Tweak.xm

 

%hook UBTripAddressesViewController
-(bool)_allowsAddressesViewController {
return TRUE;
}
%end
 
%hook UBTripAddressesView
-(bool)shouldDisplayDropoff {
return TRUE;
}
%end
 
%hook UBTrippAddressesView 
-(void)_updateDropoffContentEdgeInsets {
return %orig();
}
%end
 
%hook UBEarningsTrip 
-(id)dropoffAddress {
return %orig();
}
%end
 
%hook UBTrip 
-(id)dropoffLocation {
return %orig();
}
%end
 
%hook UBSecondaryDispatchView 
-(bool)showPickupAndDropoffAddress {
return TRUE;
}
%end
 
%hook UBSecondaryDispatchDefaultAcceptView
-(bool)showPickupAndDropoffAddress {
return TRUE;
}
%end
 
%hook UBOnTripMapViewController
-(bool)_allowsDropoffLocationToBeShown {
return %orig();
}
%end
 
%hook UBTripAddressesView
-(bool)shouldDisplayPickup {
return FALSE;
}
%end
 
%hook UBNavigationInfoViewController
-(void)_updateDisplayForDisplay {
return %orig();
}
%end
 
%hook UBNavigationInfoViewController
-(void)_updateDisplay {
return %orig();
}
%end
 
%hook UBTripAddressesViewController
-(void)_updateDisplayForDisplay {
return %orig();
}
%end
 
%hook UBTripAddressesViewController
-(void)_updateDisplay {
return %orig();
}
%end
 
%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
%orig(TRUE);
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
%orig(arg1, TRUE);
}
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
%orig(arg1, TRUE);
}

 

%end
Posted

%hook UBTripAddressesViewController

-(bool)_allowsAddressesViewController {

return TRUE;

}

%end

 

%hook UBTripAddressesView

-(bool)shouldDisplayDropoff {

return TRUE;

}

%end

 

%hook UBTrippAddressesView 

-(void)_updateDropoffContentEdgeInsets {

return %orig();

}

%end

 

%hook UBEarningsTrip 

-(id)dropoffAddress {

return %orig();

}

%end

 

%hook UBTrip 

-(id)dropoffLocation {

return %orig();

}

%end

 

%hook UBSecondaryDispatchView 

-(bool)showPickupAndDropoffAddress {

return TRUE;

}

%end

 

%hook UBSecondaryDispatchDefaultAcceptView

-(bool)showPickupAndDropoffAddress {

return TRUE;

}

%end

 

%hook UBOnTripMapViewController

-(bool)_allowsDropoffLocationToBeShown {

return %orig();

}

%end

 

%hook UBTripAddressesView

-(bool)shouldDisplayPickup {

return FALSE;

}

%end

 

%hook UBNavigationInfoViewController

-(void)_updateDisplayForDisplay {

return %orig();

}

%end

 

%hook UBNavigationInfoViewController

-(void)_updateDisplay {

return %orig();

}

%end

 

%hook UBTripAddressesViewController

-(void)_updateDisplayForDisplay {

return %orig();

}

%end

 

%hook UBTripAddressesViewController

-(void)_updateDisplay {

return %orig();

}

%end

 

%hook UBSecondaryDispatchDefaultAcceptView

-(void)setShowPickupAndDropoffAddress:(bool)arg1 {

%orig(TRUE);

}

%end

 

%hook UBTripAddressesView

-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {

%orig(arg1, TRUE);

}

%end

 

%hook UBSecondaryDispatchView

-(void)setShowPickupAndDropoffAddress:(bool)arg1 {

%orig(arg1, TRUE);

}

 

%end

%hook UBTripAddressesViewController
-(bool)_allowsAddressesViewController {
    return TRUE;
}
%end
 
%hook UBTripAddressesView
-(bool)shouldDisplayDropoff {
    return TRUE;
}
%end

%hook UBSecondaryDispatchView 
-(bool)showPickupAndDropoffAddress {
    return TRUE;
}
%end
 
%hook UBSecondaryDispatchDefaultAcceptView
-(bool)showPickupAndDropoffAddress {
    return TRUE;
}
%end
 
%hook UBTripAddressesView
-(bool)shouldDisplayPickup {
    return FALSE;
}
%end
 
%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    %orig(TRUE);
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
    %orig(arg1, TRUE);
}
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    %orig(TRUE);
}
 
%end

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

    • Heroes Crew: Strategy Defense v1.1.5 [+6 Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 30 replies
    • Heroes Crew: Strategy Defense v1.1.5 [+6 Jailed Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 15 replies
    • Candy Pop Story : Match 3 v1.23.0722 [ +3 Cheats ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4


      🤩 Hack Features

      - Auto Win
      - Coins
      - Moves
      -
      • 5 replies
    • Candy Pop Story : Match 3 v1.23.0722 [ +3 Jailed ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Coins
      - Moves
      • 6 replies
    • Boom Castle Tower Defense TD v1.5.2 [ +7 Jailed ] Easy Win
      Modded/Hacked App: Boom Castle: Tower Defense TD By Terahype s.r.o.
      Bundle ID: castle.heroes.tower.defense.kingdom.magic.battle.archer
      iTunes Store Link: https://apps.apple.com/us/app/boom-castle-tower-defense-td/id6502820312?uo=4


      Hack Features:

      - Enemy Status [ HP DEF ]

      - Base HP 

      - Battle Cost 0 

      - Stage Unlocked [ Play Any Stage ]

      - Battle Pass Unlocked 

      - Battle Pass Claim Unlimited [ Gems Gold ]

      - iGG Speed Hack Max 0 - 10 [ Skill CD - ATK Speed - Animation Speed - Wave Faster ]


      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/
      • 48 replies
    • Boom Castle Tower Defense TD v1.5.2 [ +7 Cheats ] Easy Win
      Modded/Hacked App: Boom Castle: Tower Defense TD By Terahype s.r.o.
      Bundle ID: castle.heroes.tower.defense.kingdom.magic.battle.archer
      iTunes Store Link: https://apps.apple.com/us/app/boom-castle-tower-defense-td/id6502820312?uo=4


      Hack Features:
      - Enemy Status [ HP DEF ]

      - Base HP 

      - Battle Cost 0 

      -  Stage Unlocked [ Play Any Stage ]

      - Battle Pass Unlocked 

      - Battle Pass Claim Unlimited [ Gems Gold ]

      - iGG Speed Hack Max 0 - 10 [ Skill CD - ATK Speed - Animation Speed - Wave Faster ] 


      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/
      • 51 replies
    • Zombie Infinity v1.9.1 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Zombie Infinity By kamasu.jp Inc.
      Bundle ID: jp.kamasu.oread
      App Store Link: https://apps.apple.com/ph/app/zombie-infinity/id6736433765?uo=4


      🤩 Hack Features

      - ADS Pass

      - Energy Pass

      - Premium Pass

      - Currency

      - Hero Status [ HP - DMG ]
      • 3 replies
    • Zombie Infinity v1.9.1 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Zombie Infinity By kamasu.jp Inc.
      Bundle ID: jp.kamasu.oread
      App Store Link: https://apps.apple.com/ph/app/zombie-infinity/id6736433765?uo=4


      🤩 Hack Features

      - ADS Pass

      - Energy Pass

      - Premium Pass

      - Currency

      - Hero Status [ HP - DMG ]
      • 3 replies
    • Alien Survivor: Survival Arena v1.40.0 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 19 replies
    • Alien Survivor: Survival Arena v1.40.0 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 32 replies
    • Merge Cruise: Mystery Puzzle v0.36.380 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Merge Cruise: Mystery Puzzle By STUDIO PEERPLAY GAMES LTD
      Bundle ID: com.peerplay.megamerge
      iTunes Store Link: https://apps.apple.com/us/app/merge-cruise-mystery-puzzle/id6459056553?uo=4
       

      🤩 Hack Features

      - Cash
      - Energy

      • 15 replies
    • Merge Cruise: Mystery Puzzle v0.36.380 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Merge Cruise: Mystery Puzzle By STUDIO PEERPLAY GAMES LTD
      Bundle ID: com.peerplay.megamerge
      iTunes Store Link: https://apps.apple.com/us/app/merge-cruise-mystery-puzzle/id6459056553?uo=4
       

      🤩 Hack Features

      - Cash
      - Energy

      • 20 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