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

    • Puzzle & Dragons (English) v22.3.0 Jailed Cheats +2
      Modded/Hacked App: Puzzle & Dragons (English) By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/133984-puzzle-dragons-japan-english-cheats-all-versions-3/


      iOS Hack Download Link: https://iosgods.com/topic/135066-puzzle-dragons-english-v1931-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 316 replies
    • [ Puzzle & Dragons KR ] 퍼즐앤드래곤 v22.3.0 Jailed Cheats +2
      Modded/Hacked App: 퍼즐앤드래곤 By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padKO
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%8D%BC%EC%A6%90%EC%95%A4%EB%93%9C%EB%9E%98%EA%B3%A4/id588637521?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/133984-puzzle-dragons-japan-english-cheats-all-versions-3/


      iOS Hack Download Link: https://iosgods.com/topic/146388-puzzle-dragons-korea-%ED%8D%BC%EC%A6%90%EC%95%A4%EB%93%9C%EB%9E%98%EA%B3%A4-v1920-jailed-cheats-2/
        • Agree
        • Thanks
        • Winner
        • Like
      • 23 replies
    • Skullgirls Fighting RPG V7.3.3 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Skullgirls: Fighting RPG By Autumn Games, LLC
      Bundle ID: com.autumn.skullgirls
      iTunes Store Link: https://apps.apple.com/us/app/skullgirls-fighting-rpg/id1280762571?uo=4


      Hack Features:

      - Auto win

      - Damage [ One HiT WiN ]

      - Energy Max

      - Skill

      - Enemy Disable

      - Goals Claimed [ Free Pass Only ]
        • Informative
        • Thanks
        • Winner
        • Like
      • 38 replies
    • Skullgirls Fighting RPG V7.3.3 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Skullgirls: Fighting RPG By Autumn Games, LLC
      Bundle ID: com.autumn.skullgirls
      iTunes Store Link: https://apps.apple.com/us/app/skullgirls-fighting-rpg/id1280762571?uo=4


      Hack Features:
      - Auto win

      - Damage [ One HiT WiN ]

      - Energy Max

      - Skill

      - Enemy Disable

      - Goals Claimed [ Free Pass Only ]
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 127 replies
    • Fortress Saga: AFK RPG Cheats v1.8.09 +5
      Modded/Hacked App: Fortress Saga: AFK RPG By cookapps
      Bundle ID: com.cookapps.bm.fortresssaga
      iTunes Store Link: https://apps.apple.com/us/app/fortress-saga-afk-rpg/id6446308106?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Freeze Currencies
      - PREMIUM
      - No Ads

       

      Non-Jailbroken Hack: https://iosgods.com/topic/184193-fortress-saga-afk-rpg-v1800-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/178933-fortress-saga-afk-rpg-cheats-v1801-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 364 replies
    • Prison Empire Tycoon-Idle Game Cheats v3.9.2 +2
      Modded/Hacked App: Prison Empire Tycoon-Idle Game by Digital Things Sociedad Limitada
      Bundle ID: com.codigames.idle.prison.empire.manager.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/prison-empire-tycoon-idle-game/id1508490923?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - No Ads


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/128324-arm64-prison-empire-tycoon%EF%BC%8Didle-game-v102-jailed-cheats-2/

       
      iOS Hack Download Link: https://iosgods.com/topic/128322-arm64-prison-empire-tycoon%EF%BC%8Didle-game-cheats-all-versions-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,161 replies
    • Left to Survive: Zombie Games Cheats v7.6.0 +10 Hacks
      Modded/Hacked App: Left to Survive: Zombie TPS By MY COM
      Bundle ID: com.glu.zbs
      iTunes Store Link: https://apps.apple.com/us/app/left-to-survive-zombie-tps/id1090501422

      Hack Features:
      - No Bullet Disperse 
      - Unlimited Ammo
      - No Recoil
      - Increased Fire-rate 

      - One Hit Campaign 
      - Grenades and Med-kits Dont Subtract
      - God Mode
      - God Mode PVP

      - Unlock Chapters early 
      - Weapons Unlocked Ready to buy 


      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,592 replies
    • [ Seven Deadly Sins KR ] 일곱 개의 대죄: GRAND CROSS Cheats v8.6.72 +5
      Modded/Hacked App: 일곱 개의 대죄: GRAND CROSS By Netmarble Corporation
      Bundle ID: com.netmarble.nanakr
      iTunes Store Link: https://apps.apple.com/kr/app/%EC%9D%BC%EA%B3%B1-%EA%B0%9C%EC%9D%98-%EB%8C%80%EC%A3%84-grand-cross/id1449552940?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill
      - Multiply Attack
      - Multiply Defense
      - Make Enemies God Mode for some quests


      iOS Hack Download Link: https://iosgods.com/topic/154899-seven-deadly-sins-kr-%EC%9D%BC%EA%B3%B1-%EA%B0%9C%EC%9D%98-%EB%8C%80%EC%A3%84-grand-cross-cheats-v750-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 177 replies
    • Zooba: Zoo Battle Royale Game v5.19.0 Jailed Cheats +2
      Modded/Hacked App: Zooba: Zoo Battle Royale Games By Wildlife Studios Limited
      Bundle ID: com.fungames.battleroyale
      iTunes Store Link: https://apps.apple.com/us/app/zooba-zoo-battle-royale-games/id1459402952?uo=4


      Hack Features:
      - Map Hacks
      - Allow Shoot in Water


      Jailbreak required hack(s): https://iosgods.com/topic/131104-arm64-zooba-zoo-battle-royale-game-cheats-all-versions-2/


      iOS Hack Download Link: https://iosgods.com/topic/131134-arm64-zooba-zoo-battle-royale-game-v320-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,301 replies
    • The Seven Deadly Sins Cheats v2.81.0 +5
      Modded/Hacked App: The Seven Deadly Sins by Netmarble Corporation
      Bundle ID: com.netmarble.nanagb
      iTunes Store Link: https://apps.apple.com/us/app/the-seven-deadly-sins/id1475440231?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK
      - Infinite MP


      iOS Hack Download Link: https://iosgods.com/topic/131686-arm64-the-seven-deadly-sins-cheats-v117-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,051 replies
    • Zombastic: Time to Survive v1.12.4 [ +1+++ Jailed ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      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/
        • Agree
        • Thanks
        • Winner
        • Like
      • 52 replies
    • Zombastic: Time to Survive v1.12.4 [ +1+++ Cheats ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





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