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

    • What Duck v1.0.21 [ +6 Cheats ] Currency Max
      Modded/Hacked App: What Duck By Nexelon inc.
      Bundle ID: com.nexelon.duckwars
      App Store Link: https://apps.apple.com/us/app/what-duck/id6744432301?uo=4

      🤩 Hack Features

      - ADS No [ Rewards Free ]

      - Currency

      - Resources

      - Battle Coins

      - Energy

      - Free Pass [ Claim Unlimited ]
        • Winner
        • Like
      • 9 replies
    • What Duck v1.0.21 [ +6 Jailed ] Currency Max
      Modded/Hacked App: What Duck By Nexelon inc.
      Bundle ID: com.nexelon.duckwars
      App Store Link: https://apps.apple.com/us/app/what-duck/id6744432301?uo=4


      🤩 Hack Features

      - ADS No [ Rewards Free ]

      - Currency

      - Resources

      - Battle Coins

      - Energy

      - Free Pass [ Claim Unlimited ]
        • Agree
        • Like
      • 14 replies
    • Tiny Reaper: Reborn v1.0.4 +4 Jailed Cheats [ God Mode + More ]
      Modded/Hacked App: Tiny Reaper: Reborn By DAERI SOFT
      Bundle ID: com.daerigame.babysasin
      App Store Link: https://apps.apple.com/us/app/tiny-reaper-reborn/id6739761698?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - No Skill Cooldown
      - Dumb Enemies
        • Informative
        • Haha
        • Thanks
        • Winner
        • Like
      • 17 replies
    • Tiny Reaper: Reborn v1.0.4 +4 Cheats [ God Mode + More ]
      Modded/Hacked App: Tiny Reaper: Reborn By DAERI SOFT
      Bundle ID: com.daerigame.babysasin
      App Store Link: https://apps.apple.com/us/app/tiny-reaper-reborn/id6739761698?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - No Skill Cooldown
      - Dumb Enemies
        • Haha
        • Thanks
        • Winner
        • Like
      • 17 replies
    • FIFA Rivals - Mobile Football v1.0.2 +2 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: FIFA Rivals - Mobile Football By Mythical Games
      Bundle ID: com.mythical.fifarivals
      iTunes Store Link:https://apps.apple.com/us/app/fifa-rivals-mobile-football/id6746578704

       
       

      🤩 Hack Features

      - Auto Win -> Linked to yourself & opponent. Every goal scored will result in a win.
      - Season Pass Unlocked -> Will let you claim all rewards from all passes.
        • Agree
        • Haha
        • Winner
        • Like
      • 26 replies
    • FIFA Rivals - Mobile Football v1.0.4 +2 Cheats [ Auto Win ]
      Modded/Hacked App: FIFA Rivals - Mobile Football By Mythical Games
      Bundle ID: com.mythical.fifarivals
      iTunes Store Link:https://apps.apple.com/us/app/fifa-rivals-mobile-football/id6746578704

       
       

      🤩 Hack Features

      - Auto Win -> Linked to yourself & opponent. Every goal scored will result in a win.
      - Season Pass Unlocked -> Will let you claim all rewards from all passes.
        • Thanks
        • Winner
        • Like
      • 24 replies
    • League of Dreamers - My Story v2.1.2 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases -> Allows free in-app purchases.


      Jailbreak required hack(s): [Mod Menu Hack] League of Dreamers - My Story v1.54 +3 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 166 replies
    • League of Dreamers - My Story v2.1.2 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases


      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
      • 77 replies
    • Good Coffee, Great Coffee v1.2.1 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       


      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 93 replies
    • Good Coffee, Great Coffee v1.2.1 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 53 replies
    • Heroes vs. Hordes v5.0.1 +6 Jailed Cheats [God Mode]
      Modded/Hacked App: Heroes vs. Hordes By Swift Games UG haftungsbeschraenkt
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes/id1608898173?uo=4


      Hack Features:
      - Free iAP
      - Infinite Currency/Resources
      - Instant Kill


      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/

        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 343 replies
    • Heroes vs. Hordes v5.0.1 +6 [God Mode]
      Modded/Hacked App: Heroes vs. Hordes By Swift Games UG haftungsbeschraenkt
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes/id1608898173?uo=4


      Hack Features:
      - Free iAP
      - God Mode
      - Infinite Currency/Resources
      - Instant Kill
      - Kill All Enemies
      - Fast Enemies
      - Freeze Enemies
      - Poison Enemies


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