Jump to content

Tweak compiles, has all needed hooks but doesn't do anything...


i0s_tweak3r

21 posts in this topic

Recommended Posts

Sorry for double post. I just don't understand why it would compile before with incorrect code and build a deb, now the code is correct, it compiles, but won't build.

 

I just made and shared this tweak this AM.

https://iosgods.com/topic/47308-free-pro-version-of-sketches-app/

What error are you getting now?

  • Replies 20
  • Created
  • Last Reply

What error are you getting now?

The same "Error 2"

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

/var/mobile/proobjcreference/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 ProObjCReference...

make[2]: Nothing to be done for `internal-library-compile'.

Making stage for tweak ProObjCReference...

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

 

I can compile either of the projects I built today, but get error with same name when trying to build.

 

The first project I built and shared is set up the same way, and builds and compiles fine.

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

/var/mobile/prosketchesfree/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 ProSketchesFree...

make[2]: Nothing to be done for `internal-library-compile'.

Making stage for tweak ProSketchesFree...

dpkg-deb: building package 'com.yourcompany.prosketchesfree' in './com.yourcompany.prosketchesfree_0.0.1-4_iphoneos-arm.deb'.

 

The same "Error 2"

I can compile either of the projects I built today, but get error with same name when trying to build.

 

The first project I built and shared is set up the same way, and builds and compiles fine.

Show us your makefile.

Try getting rid of the #include at the top of your Tweak.xm, as there's no need for it. Also, show us your Makefile

Here's the makefile that won't build.

 

include theos/makefiles/common.mk

ARCHS = armv7s arm64

export ARCHS = armv7 armv7s arm64

export TARGET = iphone:clang:9.2:9.0

 

TWEAK_NAME = ProObjCReference

ProObjCReference_FILES = Tweak.xm

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 Springboard"

 

And I just removed include from tweak.xm, made it compile again and make Errors.txt

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

/var/mobile/proobjcreference/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 ProObjCReference...

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 ProObjCReference...

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

Stripping ProObjCReference...

Signing ProObjCReference...

Making stage for tweak ProObjCReference...

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

 

I googled internal package error 2 and found a project that compiled but wouldn't build like mine. Its problem was using symbols in the com.yourcompanyname.yourtweakname, which I used an "_" in. I used NIC to make new version without symbols in name, and copied tweak.xm to new patch, with the updated code from the beginning of this thread. It compiled, built the deb and installed- unfortuneately I'm back to the original problem. Tweak doesn't work.

 

The hooks with more then one argat the bottom of the tweak.xm are what's not working. The flex patch I based the tweak off of does work, so I'm confident I have all the right hooks, the code is just returning the %orig for both args it seems.

 

Something is wrong here I believe

%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

@@i0s_tweak3r

 

Did you try making deb using putty (computer)

No. I have putty, but project hasn't left my mobile device. It built the .deb properly and it installed. I just don't have the code quite right I don't think. I don't think it's returning the arg1's as null.

No. I have putty, but project hasn't left my mobile device. It built the .deb properly and it installed. I just don't have the code quite right I don't think. I don't think it's returning the arg1's as null.

Can you upload your project folder?

Can you upload your project folder?

Yeah no prob. I edited tweak.xm hoping this would work but I still can't seem to make arg1 null in the bottom hooks.

 

%hook MyTransactionObserver-(bool) purchased {return TRUE;}%end%hook MyTransactionObserver-(void) setPurchased:(bool)arg1 {return %orig(TRUE);}%end%hook MyTransactionObserver-(void) failedTransaction:(id)arg1 {return %orig(NULL);}%end%hook LBCategoryViewController-(void) configureNormalCellForInAppPurchase:(id)arg1 fromIndexPath:(id)arg2 {return %orig(NULL, arg2);}%end%hook LBCategoryViewController-(void) configureGlossaryCellForInAppPurchase:(id)arg1 fromIndexPath:(id)arg2 {return %orig(NULL, arg2);}%end

Link to app for tweak: Objective C Reference Lite by Lucian Boboc

https://appsto.re/us/XQJ3y.i

 

Edit: Downloaded iOS 9.0 sdk, changed target in makefile and just used first two hooks in tweak.xm,it compiled and now works.

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Conquest Girls : AFK Idle RPG Cheats v2.11.55 +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/
        • Haha
        • Thanks
        • Like
      • 17 replies
    • Monster Legends: Collect all Cheats v17.7.4 +8
      Modded/Hacked App: Monster Legends: Breeding RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-breeding-rpg/id653508448?uo=4


      Hack Features:
      - 1 Hit Kill
      - Skip Enemy Turn
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win


      iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-v1632-5-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 284 replies
    • Otherworld Three Kingdoms Cheats v1.0.24 +4
      Modded/Hacked App: Otherworld Three Kingdoms By SuperPlanet corp.
      Bundle ID: com.superplanet.samworld
      iTunes Store Link: https://apps.apple.com/us/app/otherworld-three-kingdoms/id6496345383?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skills


      iOS Hack Download Link: https://iosgods.com/topic/183743-otherworld-three-kingdoms-cheats-v103-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 104 replies
    • BitLife - Life Simulator Cheats v3.17.3 +2
      Modded/Hacked App: BitLife - Life Simulator by Candywriter, LLC
      Bundle ID: com.wtfapps.apollo16
      iTunes Store Link: https://apps.apple.com/us/app/bitlife-life-simulator/id1374403536?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Free Bitizen Purchase (Press Cancle) - Work for All Versions


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/84167-arm64-bitlife-life-simulator-v1412-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/84223-arm64-bitlife-life-simulator-cheats-all-versions-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,377 replies
    • Choices: Stories You Play Cheats v4.0.1 +4
      Modded/Hacked App: Choices: Stories You Play By Pixelberry Studios
      Bundle ID: com.pixelberrystudios.choices
      iTunes Store Link: https://apps.apple.com/us/app/choices-stories-you-play/id1071310449?uo=4


      Hack Features:
      - Free Premium Choices
      - Free Outfits
      - Free Hairstyles
      - Free Looks

      Note: able to purchase without having enough gems.


      iOS Hack Download Link: https://iosgods.com/topic/147155-choices-stories-you-play-v309-4-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 349 replies
    • Gran Saga Idle:KNIGHTSxKNIGHTS Cheats v1.23.0 +2
      Modded/Hacked App: Gran Saga Idle:KNIGHTSxKNIGHTS By Kakao Games Corp.
      Bundle ID: com.piedpixels.gransagaidle
      iTunes Store Link: https://apps.apple.com/us/app/gran-saga-idle-knightsxknights/id6482985104?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense


      iOS Hack Download Link: https://iosgods.com/topic/182761-gran-saga-idleknightsxknights-cheats-v101-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 245 replies
    • Cats & Soup Cheats v2.60.0 +2
      Modded/Hacked App: Cats & Soup By HIDEA Co.,Ltd
      Bundle ID: com.hidea.cat
      iTunes Store Link: https://apps.apple.com/us/app/cats-soup/id1581431235?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/157486-cats-soup-v196-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/157484-cats-soup-cheats-v196-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 280 replies
    • Dice Dreams Cheats v1.86.0 +2
      Modded/Hacked App: Dice Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dicedreams
      iTunes Store Link: https://apps.apple.com/us/app/dice-dreams/id1484468651?uo=4


      Hack Features:
      - Custom Rolls
      - Unlimited Coins - afford regardless of if you have enough


      iOS Hack Download Link: https://iosgods.com/topic/138011-dice-dreams%E2%84%A2-v1692-2-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 605 replies
    • [Global / KR] STARSEED: Asnia Trigger Cheats v3.4 +3
      Modded/Hacked App: STARSEED: Asnia Trigger By Com2uS Corp.
      Bundle ID: com.com2us.starseedgl.ios.apple.global.normal
      iTunes Store Link: https://apps.apple.com/us/app/starseed-asnia-trigger/id6504904399?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skills


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
       


      iOS Hack Download Link: https://iosgods.com/topic/188338-starseed-asnia-trigger-cheats-v115-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 43 replies
    • LAST CLOUDIA Cheats v5.10.0 +5
      Modded/Hacked App: LAST CLOUDIA By AIDIS Inc.
      Bundle ID: com.aidis.lastcloudiaen
      iTunes Store Link: https://apps.apple.com/us/app/last-cloudia/id1473588527?uo=4


      Hack Features:
      - God Mode
      - Infinite MP
      - Infinite SP
      - Infinite Ether


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/147069-last-cloudia-v1160-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/147068-last-cloudia-cheats-all-versions-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 459 replies
    • [ Last Cloudia TW ] 最後的克勞迪亞 Cheats v5.10.0 +5
      Modded/Hacked App: 最後的克勞迪亞 By Hong Kong Bao Chuan Software Technology Limited
      Bundle ID: com.boltrend.cloudia
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E/id1530784975?uo=4



      Hack Features:
      - God Mode
      - Infinite MP
      - Infinite SP
      - Infinite Ether


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/139142-last-cloudia-tw-%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E-v161-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/139140-last-cloudia-tw-%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E-cheats-all-versions-4/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 386 replies
    • Summoners War Cheats v8.6.0 +7
      Hacked App: Summoners War By Com2uS Corp.
      iTunes Link: https://itunes.apple.com/us/app/summoners-war/id852912420?mt=8&uo=4&at=1010lce4
      Bundle ID: com.com2us.smon.normal.freefull.apple.kr.ios.universal

      Hack Features:
      - Damage Multiplier 
      - Godmode
      - Monster Count Unlink
      - Max Accuracy
      - No Skill Cooldown
      - First Turn
      - Build buildings without having required level
      - Antiban
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 6,797 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