Jump to content

36 posts in this topic

Recommended Posts

Posted (edited)

Hi...

I am just new here, and just started to learn Objective C Programming.

I am on the process of converting Flex Tweak that I have downloaded from the Flex Cloud and convert it to the deb file.

I used this to convert Flex Patch to deb file.

But, upon compiling the Tweak.XM,it gives alot of error.

Could someone help me re-write the code? I'll provide the code here:

 

%hook MKStoreManager
-(BOOL) isProductTypePurchased:(int)arg1 {
return FALSE;
}
%end

%hook NBAAppAPIManager
-(BOOL) isVIPAccount {
return FALSE;
}
%end

%hook NBAAccessControlManager
-(BOOL) isLiveChannelAvailableForCurrentLocation {
return FALSE;
}
%end

%hook NLGeoManager
-(void) setLocmanager:(id)arg1 {
return %orig;
}
%end

%hook NLNBAGeoManager
-(void) geoCheckRequestDone:(id)arg1 {
arg1 = ;
return %orig;
}
%end

%hook GADAdFetcher
-(id) init {
return ;
}
%end

%hook NBAAppAPIManager
-(BOOL) getHasNBATV {
return FALSE;
}
%end

%hook MKStoreManager
-(BOOL) isProductTypePurchased:(int)arg1 gameId:(id) {
return FALSE;
arg2 = ;
}
%end

%hook NBAIAPAccessControl
-(bool) accountAddPackage {
return TRUE;
}
%end

%hook NBAIAPAccessControl
-(bool) canAccessRapidReplay:(id)arg1 {
return TRUE;
}
%end

%hook NBAAccessControlManager
-(bool) canAccessRapidReplay:(id)arg1 {
return TRUE;
}
%end

%hook NBAServiceAccessControl
-(bool) canAccessRapidReplay:(id)arg1 {
return TRUE;
}
%end

%hook NBAIAPAccessControl
-(bool) canAccessGameByGameItem:(id)arg1 {
return TRUE;
}
%end

%hook NBAAccessControlManager
-(bool) canAccessGameByGameItem:(id)arg1 {
return TRUE;
}
%end

%hook NBAServiceAccessControl
-(bool) canAccessGameByGameItem:(id)arg1 {
return TRUE;
}
%end

%hook NBAIAPAccessControl
-(bool) canAccessChannel:(id)arg1 {
return TRUE;
}
%end

%hook NBAAccessControlManager
-(bool) canAccessChannel:(id)arg1 {
return TRUE;
}
%end

%hook NBAServiceAccessControl
-(bool) canAccessChannel:(id)arg1 {
return TRUE;
}
%end

%hook NBAAuthenticationInfo
-(bool) canAccessChannel {
return TRUE;
}
%end

%hook NBAIAPAccessControl
-(bool) canAccessVaultVideos:(id)arg1 {
return TRUE;
}
%end

%hook NBAAccessControlManager
-(bool) canAccessVaultVideos:(id)arg1 {
return TRUE;
}
%end

%hook NBAServiceAccessControl
-(bool) canAccessVaultVideos:(id)arg1 {
return TRUE;
}
%end

%hook ADBMediaItem
-(bool) isLive {
return TRUE;
}
%end

%hook NLSProgram
-(bool) isLiveEvent {
return TRUE;
}
%end

%hook NBADLGameItem
-(bool) isLiveGame {
return TRUE;
}
%end

%hook NBAGameItem
-(bool) isLiveGame {
return TRUE;
}
%end

%hook NBABoxScoreScorePeriodTimeItem
-(bool) isLiveGame {
return TRUE;
}
%end

%hook NLChromecastParams
-(void) setIsLiveStream:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end

%hook NLChromecastParams
-(bool) isLiveStream {
return TRUE;
}
%end

%hook NBABoxScoreItem
-(bool) isLiveBoxScore {
return TRUE;
}
%end

%hook NBAVideoVCPad
-(void) selectedEPG:(id)arg1 isLive:(bool) {
arg2 = TRUE;
return %orig;
}
%end

%hook NBATVVC
-(void) selectedEPG:(id)arg1 isLive:(bool) {
arg2 = TRUE;
return %orig;
}
%end

%hook NBAVideoVC
-(void) selectedEPG:(id)arg1 isLive:(bool) {
arg2 = TRUE;
return %orig;
}
%end

%hook NLMediaTrackEPGParams
-(bool) isLiveAtTimestamp:(id)arg1 {
return TRUE;
}
%end

%hook NBAAuthenticationInfo
-(void) setCanAccessChannel:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end

%hook NLSLinearChannel
-(id) blackout {
return ;
}
%end

%hook NLSApplyPPVCreditResponse
-(bool) isSubscribedSuccess {
return TRUE;
}
%end

%hook NBAAccessControlManager
-(bool) hasAnyAccount {
return TRUE;
}
%end

%hook NLSBlackoutInfo
-(bool) isDeny {
return TRUE;
}
%end

%hook IMALiveStreamRequest
-(bool) attemptPreroll {
return TRUE;
}
%end

%hook NBAMediaPlayerItem
-(bool) needShowPreroll {
return TRUE;
}
%end

%hook AppDelegateShared
-(bool) isAppGeoBlock {
return TRUE;
}
%end

%hook ANSMetadata
-(bool) computeIsJailbroken {
return TRUE;
}
%end

%hook ANSMetadata
-(bool) isJailbroken {
return TRUE;
}
%end

%hook GADDevice
-(bool) jailbroken {
return TRUE;
}
%end

%hook NBAMediaPlayerManager
-(void) handleVerifyPurchasedProductsSuccess:(id)arg1 {
return %orig;
}
%end

%hook NLStoreManager
-(void) verifyPurchasedProductsSuccess {
return %orig;
}
%end

%hook NLStoreManager
-(void) verifyPurchasedProducts {
return %orig;
}
%end

%hook NLStoreManager
-(void) verifyPurchasedProducts:(bool)arg1 {
return %orig;
}
%end

%hook NBAIAPAccessControl
-(bool) isValidDate:(id)arg1 endDate:(id)arg2 containsFeature:(bool) {
arg3 = TRUE;
return %orig;
}
%end

 

ERROR MESSAGE

Tweak.xm:27:8: error: expected expression
arg1 = ;
       ^
Tweak.xm:34:1: error: non-void function '_logos_method$_ungrouped$GADAdFetcher$init' should return a value
      [-Wreturn-type]
return ;
^
Tweak.xm:45:126: error: expected class member or base class name
  ...self, SEL _cmd, int arg1):(id) {
                               ^
Tweak.xm:45:126: error: expected '{' or ','
Tweak.xm:45:125: error: only constructors take base initializers
  ...self, SEL _cmd, int arg1):(id) {
                              ^
Tweak.xm:47:1: error: use of undeclared identifier 'arg2'; did you mean 'arg1'?
arg2 = ;
^~~~
arg1
Tweak.xm:45:120: note: 'arg1' declared here
  ...self, SEL _cmd, int arg1):(id) {
                         ^
Tweak.xm:47:8: error: expected expression
arg2 = ;
       ^
Tweak.xm:185:112: error: expected class member or base class name
static void _logos_method$_ungrouped$NBAVideoVCPad$selectedEPG$isLive$(NBAVideoVCPad* self, SEL _cmd, id arg1):(bool) {
                                                                                                               ^
Tweak.xm:185:112: error: expected '{' or ','
Tweak.xm:185:111: error: only constructors take base initializers
static void _logos_method$_ungrouped$NBAVideoVCPad$selectedEPG$isLive$(NBAVideoVCPad* self, SEL _cmd, id arg1):(bool) {
                                                                                                              ^
Tweak.xm:186:1: error: use of undeclared identifier 'arg2'; did you mean 'arg1'?
arg2 = TRUE;
^~~~
arg1
Tweak.xm:185:106: note: 'arg1' declared here
static void _logos_method$_ungrouped$NBAVideoVCPad$selectedEPG$isLive$(NBAVideoVCPad* self, SEL _cmd, id arg1):(bool) {
                                                                                                         ^
Tweak.xm:186:6: error: assigning to 'id' from incompatible type 'int'
arg2 = TRUE;
     ^ ~~~~
Tweak.xm:192:100: error: expected class member or base class name
static void _logos_method$_ungrouped$NBATVVC$selectedEPG$isLive$(NBATVVC* self, SEL _cmd, id arg1):(bool) {
                                                                                                   ^
Tweak.xm:192:100: error: expected '{' or ','
Tweak.xm:192:99: error: only constructors take base initializers
static void _logos_method$_ungrouped$NBATVVC$selectedEPG$isLive$(NBATVVC* self, SEL _cmd, id arg1):(bool) {
                                                                                                  ^
Tweak.xm:193:1: error: use of undeclared identifier 'arg2'; did you mean 'arg1'?
arg2 = TRUE;
^~~~
arg1
Tweak.xm:192:94: note: 'arg1' declared here
static void _logos_method$_ungrouped$NBATVVC$selectedEPG$isLive$(NBATVVC* self, SEL _cmd, id arg1):(bool) {
                                                                                             ^
Tweak.xm:193:6: error: assigning to 'id' from incompatible type 'int'
arg2 = TRUE;
     ^ ~~~~
Tweak.xm:199:106: error: expected class member or base class name
static void _logos_method$_ungrouped$NBAVideoVC$selectedEPG$isLive$(NBAVideoVC* self, SEL _cmd, id arg1):(bool) {
                                                                                                         ^
Tweak.xm:199:106: error: expected '{' or ','
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

I do appreciate your time reading and helping my post. Please let me know if you need more info.

 

Cheers!

Updated by eduard816
Posted

What are the errors? 

For multiple methods in the same class, do this:

 

From: 

%hook ANSMetadata
-(bool) computeIsJailbroken {
return TRUE;
}
%end

%hook ANSMetadata
-(bool) isJailbroken {
return TRUE;
}
%end

To: 

%hook ANSMetadata

-(bool) computeIsJailbroken {
return TRUE;
}

-(bool) isJailbroken {
return TRUE;
}

%end

 

 


 

For 

%hook MKStoreManager
-(BOOL) isProductTypePurchased:(int)arg1 {
return FALSE;
}
%end

Remove 

arg1

Unless you're going to return it.

 


Posted

Why don't they ban FlexConverter :(

 

if my pc was working I would rewrite it for you.. I'm sorry.

 

but I see some functions with arguments, have you changed the arguments in Flex?

Posted

I do apologize to the incomplete content of my post.

I have edited my original post and added both my code and the error message.

I am surprised that the Flex Tweak works perfectly, but after converting it to code and converting it to deb file it has too many errors.

 

Thanks for your help.

1 minute ago, Ted2 said:

Why don't they ban FlexConverter :(

 

if my pc was working I would rewrite it for you.. I'm sorry.

 

but I see some functions with arguments, have you changed the arguments in Flex?

I am on the stage of just converting Flex tweak to Code and then compiling code to deb file.

I haven't changed anything yet, I will read your answers and study them. Then I will do some changes on the code since I am just a beginner on ObjectiveC language.

Thanks!

Posted
%hook NBAIAPAccessControl
-(bool) isValidDate:(id)arg1 endDate:(id)arg2 containsFeature:(bool) {
arg3 = TRUE;
return %orig;
}
%end

Here you haven't defined arg3, but you're returning it.

 


 

Change 

%hook NLNBAGeoManager
-(void) geoCheckRequestDone:(id)arg1 {
arg1 = ;
return %orig;
}
%end

 

To:

%hook NLNBAGeoManager
-(void) geoCheckRequestDone:(id) {
return %orig;
}
%end

Posted

For: 

%hook NBATVVC
-(void) selectedEPG:(id)arg1 isLive:(bool) {
arg2 = TRUE;
return %orig;
}
%end

Do:

%hook NBATVVC
-(void) selectedEPG:(id)arg1 isLive:(bool)arg2 {
%orig (arg1, TRUE);
}
%end

 


Now, follow all the replies I've posted, and do so for all the similar problems.

Compile again, and update your post with the new tweak.xm and errors.


Posted
8 minutes ago, Zimon said:

%hook NBAIAPAccessControl
-(bool) isValidDate:(id)arg1 endDate:(id)arg2 containsFeature:(bool) {
arg3 = TRUE;
return %orig;
}
%end

Here you haven't defined arg3, but you're returning it.

 


 

Change 


%hook NLNBAGeoManager
-(void) geoCheckRequestDone:(id)arg1 {
arg1 = ;
return %orig;
}
%end

 

To:


%hook NLNBAGeoManager
-(void) geoCheckRequestDone:(id) {
return %orig;
}
%end

 

10 minutes ago, eduard816 said:

I do apologize to the incomplete content of my post.

I have edited my original post and added both my code and the error message.

I am surprised that the Flex Tweak works perfectly, but after converting it to code and converting it to deb file it has too many errors.

 

Thanks for your help.

I am on the stage of just converting Flex tweak to Code and then compiling code to deb file.

I haven't changed anything yet, I will read your answers and study them. Then I will do some changes on the code since I am just a beginner on ObjectiveC language.

Thanks!

also, you have written isjailbreak as true and purchased as false. That makes no sense

Posted

I got a PM from iOS-Tweaker... and I quote:

hey i made an improved version of FlexConverter tool, aptly named flex3converter; fixed a couple bugs it had. I didn't finish fixing some inverted bool values (which were wrong in original tool) but i programmed an option to put if ur patch has more true or false ones so ya don't have to change as many

maybe the version of the FlexConverter had too many bugs and I will try the latest version of iOS-Tweak3r of Flex3Converter.

Then try to compile it and let's see if it has less errors.

 

Thank for your help.

 

Posted (edited)
3 minutes ago, eduard816 said:

I got a PM from iOS-Tweaker... and I quote:


hey i made an improved version of FlexConverter tool, aptly named flex3converter; fixed a couple bugs it had. I didn't finish fixing some inverted bool values (which were wrong in original tool) but i programmed an option to put if ur patch has more true or false ones so ya don't have to change as many

maybe the version of the FlexConverter had too many bugs and I will try the latest version of iOS-Tweak3r of Flex3Converter.

Then try to compile it and let's see if it has less errors.

 

Thank for your help.

 

FlexConverter has some bugs, but the code can be fixed if you follow our instructions :)

Updated by Guest
Posted
Just now, Zimon said:

FlexConverter has some bugs, but the code can be fixed if you follow our instructions :)

I've read the whole thread. But didn't see any instructions on how to fix the bugs. Maybe you can direct me on the page on how to fix the bugs on the FlexConverter? So that I can convert the Flex Tweak into code and have less errors when compiling it.

Thanks.

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

    • Idle Nuns Tycoon v1.1.11 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Idle Nuns Tycoon By SAMZU LIMITED
      Bundle ID: com.idle.nums.empire.tycoon
      App Store Link: https://apps.apple.com/us/app/idle-nuns-tycoon/id6747325865?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]
      - Gold [ Disable After Get ]
      - Money [ Disable After Get ]
      - Silver [ Disable After Get ] Don't Use When Earn [ LVL & EXP ] Because Linked LvL & EXP Not Work
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 17 replies
    • Idle Nuns Tycoon v1.1.11 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Idle Nuns Tycoon By SAMZU LIMITED
      Bundle ID: com.idle.nums.empire.tycoon
      App Store Link: https://apps.apple.com/us/app/idle-nuns-tycoon/id6747325865?uo=4

       
      🤩 Hack Features

      - ADS NO [ Rewards Free ]
      - Gold [ Disable After Get ]
      - Money [ Disable After Get ]
      - Silver [ Disable After Get ] Don't Use When Earn [ LVL & EXP ] Because Linked LvL & EXP Not Work
        • Agree
        • Haha
        • Winner
        • Like
      • 22 replies
    • Travel Merge Family Game v3.070 [ +1++ APK MOD ] Currency Max
      Mod APK Game Name: Travel Merge Family Game
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.TravelMergeFamily&hl=en

       

      🤩 Hack Features

      - Currency Max

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • Travel Merge Family Game v3.070 [ +1++ Cheats ] Currency Max
      Travel Merge Family

      🤩 Hack Features

      - Currency Max 
        • Informative
        • Like
      • 20 replies
    • Travel Merge Family Game v3.070 [ +1++ Jailed ] Currency Max
      Modded/Hacked App: Travel Merge Family By Arruga Corp.
      Bundle ID: com.ArrugaCorp.TravelMergeFamily
      App Store Link: https://apps.apple.com/us/app/travel-merge-family/id6553995556?uo=4


      🤩 Hack Features

      - Currency Max
        • Agree
        • Thanks
        • Like
      • 24 replies
    • WOF - Arena v0.2.64 [ +1 APK MOD ] ATK MAX
      Mod APK Game Name: WOF - Arena
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.WOFProduction.WheelofFaithArena&hl=en

       

      🤩 Hack Features

      - ATK / Linked Enemy / But When Your Turn Then Use Easy To Win

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • WOF - Arena v0.2.64 [ +1 Jailed ] DMG
      Modded/Hacked App: WOF - Arena By WoF Production
      Bundle ID: com.WOFProduction.WheelofFaithArena
      App Store Link: https://apps.apple.com/us/app/wof-arena/id6741720731?uo=4

      🤩 Hack Features

      - DMG / Linked Enemy / But When Your Turn Then Use Easy To Win
        • Agree
        • Thanks
        • Winner
        • Like
      • 11 replies
    • WOF - Arena v0.2.64 [ +1 Cheats ] DMG
      Modded/Hacked App: WOF - Arena By WoF Production
      Bundle ID: com.WOFProduction.WheelofFaithArena
      App Store Link: https://apps.apple.com/us/app/wof-arena/id6741720731?uo=4

      🤩 Hack Features

      - DMG / Linked Enemy / But When Your Turn Then Use Easy To Win
        • Like
      • 11 replies
    • Z Blast! v1.2.2 [ +6 APK MOD ] ATK Max
      Mod APK Game Name: Z Blast!
      Rooted Device: Not Required.
      Google Play Store Link: https://apkcombo.com/id/z-blast/com.universal.mobile.fallen.city.game.android/

       

      🤩 Hack Features

      - DMG
      - Skill CD
      - Weapon CD
      - Skill Range
      - Weapon Range
      - Revive Cost 0
      Note:- Don't Abuse The Hack Incase Banned

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • Hoverboard Party +1 Mod [ Dumb Enemies ]
      Mod APK Game Name: Hoverboard Party By Boom-808
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.miniclip.subwaysurfersparty

       

      🤩 Hack Features

      - Dumb Enemies
        • Like
      • 0 replies
    • Love Island: The Game +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Love Island: The Game By Fusebox Games
      Bundle ID: com.fuseboxgames.loveisland2
      iTunes Store Link: https://apps.apple.com/us/app/love-island-the-game/id1522699215
       

      Hack Features:
      - Unlimited Gems -> Earn or spend some.
      - Unlimited Tickets -> Earn or spend some.


      Jailbreak required hack(s): https://iosgods.com/topic/169224-love-island-the-game-all-versions-2-cheats-unlimited-currencies/
      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
      • 624 replies
    • Hoverboard Party +1 Jailed Cheat [ Dumb Enemies ]
      Modded/Hacked App: Hoverboard Party By Boom 808 Aps
      Bundle ID: com.miniclip.subwaysurfersparty
      App Store Link: https://apps.apple.com/gb/app/hoverboard-party/id6761837158?uo=4

       

      🤩 Hack Features

      - Dumb Enemies
      • 1 reply
×
  • 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