Jump to content

21 posts in this topic

Recommended Posts

Posted

I made a flex patch today, which works no issues. I used it to hook each element of my tweak, but somewhere I messed up. I'm sure it's something easy as it was a super easy patch to make. It's to show full version of an Objective C reference app.

 

Below is tweak.xm file

#include

%hook MyTransactionObserver

-(bool) purchased {

return TRUE;

}

%end

 

%hook MyTransactionObserver

-(void) setPurchased:(bool)arg1 {

arg1 = TRUE;

return %orig;

}

%end

 

%hook MyTransactionObserver

-(void) failedTransaction:(id)arg1 {

arg1 = NULL; return %orig;

}

%end

 

%hook LBCategoryViewController

-(void) configureNormalCellForInAppPurchase:(id)arg1 fromIndexPath:(id) {

arg1 = NULL; return %orig;

}

%end

 

%hook LBCategoryViewController

-(void) configureGlossaryCellForInAppPurchase:(id)arg1 fromIndexPath:(id) {

arg1 = NULL; return %orig;

}

%end

 

  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)

You forgot to add "arg2".

 

 

Try this:

#include 
%hook MyTransactionObserver
-(bool) purchased {
return TRUE;
}

-(void) setPurchased:(bool)arg1 {
arg1 = TRUE;
return %orig;
}

-(void) failedTransaction:(id)arg1 {
arg1 = NULL; return %orig;
}
%end

%hook LBCategoryViewController
-(void) configureNormalCellForInAppPurchase:(id)arg1 fromIndexPath:(id)arg2 {
arg1 = NULL; 
return %orig;
}

-(void) configureGlossaryCellForInAppPurchase:(id)arg1 fromIndexPath:(id)arg2 {
arg1 = NULL; 
return %orig;
}
%end
Updated by Joka
Posted

You forgot to add "arg2".

 

 

Try this:

 

#include 
%hook MyTransactionObserver
-(bool) purchased {
return TRUE;
}

-(void) setPurchased:(bool)arg1 {
arg1 = TRUE;
return %orig;
}

-(void) failedTransaction:(id)arg1 {
arg1 = NULL; return %orig;
}
%end

%hook LBCategoryViewController
-(void) configureNormalCellForInAppPurchase:(id)arg1 fromIndexPath:(id)arg2 {
arg1 = NULL; 
return %orig;
}

-(void) configureGlossaryCellForInAppPurchase:(id)arg1 fromIndexPath:(id)arg2 {
arg1 = NULL; 
return %orig;
}
%end

That could be it. Changed the hooks with more then one arg and typed "Make Package" in Terminal, but it said "nothing to compile" and just built a new .deb, which after installing still sadly does nothing.

Posted

That could be it. Changed the hooks with more then one arg and typed "Make Package" in Terminal, but it said "nothing to compile" and just built a new .deb, which after installing still sadly does nothing.

Does it work in Flex?

Posted

Does it work in Flex?

Yeah. Works perfect. Was just playing with control files to change the version and deleted previous object to force it to compile. Now there's a couple errors with the modified code.

Posted

Yeah. Works perfect. Was just playing with control files to change the version and deleted previous object to force it to compile. Now there's a couple errors with the modified code.

What did you change? And can you show me the errors? :)

Posted

What did you change? And can you show me the errors? :)

I just built a new project so I could get a fresh compile, and not worry if I messed up the tweak version in one of the control files. It compiled, but I got an error building the package from an apparent missing symlink, which is weird cause the makefile and Theos symlink are the same as a tweak I compiled and shared earlier today.

 

Anyway, here's the Errors.txt file

/var/mobile/fullreference/theos/makefiles/targets/Darwin-arm64/iphone.mk:46: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.

/var/mobile/fullreference/theos/makefiles/targets/Darwin-arm64/iphone.mk:56: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.

Making all for tweak FullReference...

Preprocessing Tweak.xm...

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Compiling Tweak.xm...

Linking tweak FullReference...

ld: warning: ignoring file /var/mobile/fullreference/theos/sdks/iPhoneOS9.3.sdk/usr/lib/dylib1.o, missing required architecture arm64 in file /var/mobile/fullreference/theos/sdks/iPhoneOS9.3.sdk/usr/lib/dylib1.o (2 slices)

Stripping FullReference...

Signing FullReference...

Making stage for tweak FullReference...

make: *** [internal-package] Error 2

 

Posted

I just built a new project so I could get a fresh compile, and not worry if I messed up the tweak version in one of the control files. It compiled, but I got an error building the package from an apparent missing symlink, which is weird cause the makefile and Theos symlink are the same as a tweak I compiled and shared earlier today.

 

Anyway, here's the Errors.txt file

In your makefile, add an extra space at the bottom.

Posted (edited)

In your makefile, add an extra space at the bottom.

Arrg. Keep getting same error. I just don't get it. I made several debs earlier today, they built just fine. My makefiles are the same. I even made sure these were good...

 

Updated by i0s_tweak3r

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

    • Run! Goddess v1.0.22 [+4 Jailed Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4



      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
      • 93 replies
    • Run! Goddess v1.0.22 [+4 Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4

       

      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
       
      • 80 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +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/
      • 15 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +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/
      • 26 replies
    • Legend of Survivors V1.2.8 [ +17 Jailed ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]


      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
    • Legend of Survivors V1.2.8 [ +17 Cheats ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:
      - IAP Free [ Buy Anything - Gems Gold Ads Premium Packs ]

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]
      • 132 replies
    • Kitchen Masters v15.0.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4


      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
      • 6 replies
    • Kitchen Masters v15.0.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4
       

      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
      • 10 replies
    • Score Masters v2.2 [ +7 Jailed ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
      • 5 replies
    • Score Masters v2.2 [ +7 Cheats ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
      • 8 replies
    • Adventure Bay - Farm Games v1.42.14 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4
       

      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 19 replies
    • Adventure Bay - Farm Games v1.42.14 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4


      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 25 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