Jump to content

MobileSubstrate - My tweak Error arg1 arg2


Go to solution Solved by Crypto,

13 posts in this topic

Recommended Posts

Posted (edited)

Hello all. I tried to compile tweak like this http://pastebin.com/ZFP6g62e. but I found an error like this

 

Tweak.xm:4:185: error: expected class member or base class name

  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                               ^
Tweak.xm:4:184: error: only constructors take base initializers
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                              ^
Tweak.xm:5:1: error: use of undeclared identifier 'arg2'; did you mean 'arg1'?
arg2 = TRUE;
^~~~
arg1
Tweak.xm:4:179: note: 'arg1' declared here
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                         ^
Tweak.xm:5:6: error: assigning to 'id' from incompatible type 'int'
arg2 = TRUE;
     ^ ~~~~
Tweak.xm:12:8: error: expected expression
arg1 = ;
       ^
Tweak.xm:19:8: error: expected expression
arg1 = ;
       ^
Tweak.xm:25:172: error: expected class member or base class name
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(id) {
                                                               ^
Tweak.xm:25:171: error: only constructors take base initializers
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(id) {
                                                              ^
Tweak.xm:26:1: error: use of undeclared identifier 'arg2'; did you mean 'arg1'?
arg2 = ;
^~~~
arg1
Tweak.xm:25:166: note: 'arg1' declared here
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(id) {
                                                         ^
Tweak.xm:26:8: error: expected expression
arg2 = ;
       ^
Tweak.xm:27:8: error: expected expression
arg1 = ;
       ^
Tweak.xm:47:1: error: non-void function
      '_logos_method$_ungrouped$BBMCoreAccess$adsEnabled' should return a value
      [-Wreturn-type]
return ;
^
Tweak.xm:53:1: error: non-void function
      '_logos_method$_ungrouped$BBMCoreAccess$getAllAds' should return a value
      [-Wreturn-type]
return ;
^
Tweak.xm:59:1: error: non-void function
      '_logos_method$_ungrouped$BBMEphemeralMetaData$remainingTime' should
      return a value [-Wreturn-type]
return ;
^
14 errors generated.
make[3]: *** [/users/pxcex/Desktop/Tweak/bbm/.theos/obj/debug/armv7/Tweak.xm.2995620b.o] Error 1
make[2]: *** [/users/pxcex/Desktop/Tweak/bbm/.theos/obj/debug/armv7/bbm.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [bbm.all.tweak.variables] Error 2

 

whether there is a solution. Thank you very much.

Updated by pxcex
Posted (edited)

Hello all. I tried to compile tweak like this http://pastebin.com/ZFP6g62e. but I found an error like this http://pastebin.com/J7u0Hp1Q. whether there is a solution. Thank you very much.

first error that I see :
 
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg2 = TRUE;

return %orig;

 

you're returning "arg2" but there's no "arg2" in your method. :wat:

 - Edit -

 

You used FlexConverter didn't you? Read the description next time :p It noticed users that it doesn't work with 2+ arguments. It also doesn't read (long long) and (double)

Updated by Crypto
Posted (edited)

 

first error that I see :
 
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg2 = TRUE;

return %orig;

 

you're returning "arg2" but there's no "arg2" in your method. :wat:

 - Edit -

 

You used FlexConverter didn't you? Read the description next time :p It noticed users that it doesn't work with 2+ arguments. It also doesn't read (long long) and (double)

 

 

Thanks. all problems had been solved, now I discovered this.

 

Tweak.xm:4:185: error: expected class member or base class name

  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                               ^
Tweak.xm:4:184: error: only constructors take base initializers
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                              ^
Updated by pxcex
Posted

Show me ur tweak xm the updated one

 

Tks. here :

 

#include <substrate.h>

 
%hook BBMCoreAccess
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg1 = FALSE;
return %orig;
}
%end
 
%hook BBMCoreAccessGroup
-(void) sendTypingNotificationForConversationURI:(id)arg1 {
arg1 = NULL;
return %orig;
}
%end
 
%hook BBMCoreAccess
-(void) markEphemeralMessageAsViewed:(id)arg1 {
arg1 = NULL;
return %orig;
}
%end
 
%hook BBMCoreAccess
-(void) markMessagesRead:(id)arg1 withConversationURI:(id)arg2 {
arg2 = NULL;
arg1 = NULL;
return %orig;
}
%end
 
%hook BBMCoreAccess
-(bool) isRateBBMEnabled {
return TRUE;
}
%end
 
%hook BBMCoreAccess
-(void) setRateBBMEnabled:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook BBMCoreAccess
-(id) adsEnabled {
return NULL;
}
%end
 
%hook BBMCoreAccess
-(id) getAllAds {
return NULL;
}
%end
 
%hook BBMEphemeralMetaData
-(double) remainingTime {
return FALSE;
}
%end
 
%hook BBMPingLimitHelper
-(bool) isLimitReached {
return TRUE;
}
%end
 
%hook BBMSystemMessageCell
-(bool) isRead {
return TRUE;
}
%end
 
%hook BBMSystemMessageCell
-(void) setIsRead:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook BBMMessage
-(bool) canBeMarkedRead {
return TRUE;
}
%end
 
%hook BBMMessageCell
+(bool) automaticallyNotifiesObserversOfMessage {
return TRUE;
}
%end
 
%hook BBMGenEphemeralMetaData
-(bool) isScreenshot {
return TRUE;
}
%end
Posted

 

first error that I see :
 
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg2 = TRUE;

return %orig;

 

you're returning "arg2" but there's no "arg2" in your method. :wat:

 - Edit -

 

You used FlexConverter didn't you? Read the description next time :p It noticed users that it doesn't work with 2+ arguments. It also doesn't read (long long) and (double)

 

 

if you can fix this?
 
%hook BBMCoreAccess
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg1 = FALSE;
return %orig;
}

 

%end
Posted (edited)

hook BBMCoreAccess

-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool)arg2 {

arg1 = NULL ;

arg2 = FALSE;

return %orig;

}

%end

Updated by NaeeM.Cool
  • Solution
Posted (edited)

 

if you can fix this?
 
%hook BBMCoreAccess
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg1 = FALSE;
return %orig;
}

 

%end

 

%hook BBMCoreAccess

-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool)arg2 {

arg1 = NULL;

arg2 = FALSE;

return %orig;
}
%end
Updated by Crypto
Posted

hook BBMCoreAccess

-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool)arg2 {

arg1 = NULL ;

arg2 = FALSE;

return %orig;

}

%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

    • Candy Crush Solitaire +11 Jailed Cheats [ Game Breaking ]
      Modded/Hacked App: Candy Crush Solitaire By King.com Limited
      Bundle ID: com.midasplayer.apps.candysolitaire
      App Store Link: https://apps.apple.com/us/app/candy-crush-solitaire/id6474685626?uo=4

       
       

      🤩 Hack Features

      - Unlimited Free Gifts -> Head into the Shop to claim the free gift over & over.
      - Season Pass Purchased

      VIP
      - Add Coins*
      - Add Energy*
      - Add Colour Bomb Boosters*
      - Add UFO Boosters*
      - Add Wildcards*
      - Add Undo's*
      - Add Extra Moves*
      - Add Free Entries*
      - Add Lollipops*

      * Head into Settings and toggle the ? button. Only enable 1 feature at a time.
      • 48 replies
    • Gang Battle Party: Playground +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Gang Battle Party: Animals 3D By LLP Take Top Entertainment
      Bundle ID: com.taketopios.chillybash
      iTunes Store Link: https://apps.apple.com/us/app/gang-battle-party-animals-3d/id1664783935?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - God Mode
      - One-Hit Kill
      -- No Ads
      • 7 replies
    • Cooking Wonder: Cooking Games +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Cooking Wonder By WonderLegend Games
      Bundle ID: com.wonderlegend.cookingwonder
      iTunes Store Link: https://apps.apple.com/us/app/cooking-wonder/id1638005392
       

      Hack Features:
      - Unlimited Currencies -> Use some.


      Jailbreak required hack(s): https://iosgods.com/topic/169330-cooking-wonder-v120-1-cheat-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/
      • 52 replies
    • Pet Rescue Saga +4 Jailed Cheats [ Unlimited Moves ]
      Modded/Hacked App: Pet Rescue Saga By King
      Bundle ID: com.midasplayer.apps.petrescuesaga
      iTunes Store Link: https://apps.apple.com/us/app/pet-rescue-saga/id572821456
       

      Hack Features:
      - Freeze Moves
      - Freeze Boosters
      - Unlimited Score -> Earn some.
      - Auto Win -> Rescue a pet.


      Jailbreak required hack(s): [Mod Menu Hack] Pet Rescue Saga v3.13.3.0 +4 Cheats [ Unlimited Moves ] - 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/
      • 28 replies
    • Idle RPG Starlight Chronicle +9 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Idle RPG Starlight Chronicle By Just Idea
      Bundle ID: jp.justidea.starlightchronicle.prod
      App Store Link: https://apps.apple.com/us/app/idle-rpg-starlight-chronicle/id6752782877?uo=4

       
       

      🤩 Hack Features

      - Unlimited Gold -> Spend some.
      - Unlimited Diamonds -> Earn or spend some.
      - Unlimited Ad Tickets -> Earn or spend some.
      - Unlimited Super Summon Points -> Earn or spend some.
      - Unlimited 4 Star Points -> Earn or spend some.
      - Unlimited Ancient Items -> Earn or spend some.
      - Unlimited Luminastars -> Earn or spend some.
      - Unlimited Materials -> Earn or spend some.
      - One-Hit Kill
      • 18 replies
    • Idle Pocket Planet +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Idle Pocket Planet By HyperBeard Inc.
      Bundle ID: com.hyperbeard.burgercats
      iTunes Store Link: https://apps.apple.com/us/app/idle-pocket-planet/id1600303144
       

      Hack Features:
      - Unlimited Soft Currency -> Will increase instead of decrease.
      - Unlimited Hard Currency -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Idle Pocket Planet ( All Versions ) +2 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/
      • 8 replies
    • BLEACH Soul Puzzle +1 Jailed Cheat [ Freeze Moves ]
      Modded/Hacked App: BLEACH Soul Puzzle By KLab Inc.
      Bundle ID: com.klab.bleach.puzzle
      iTunes Store Link: https://apps.apple.com/us/app/bleach-soul-puzzle/id6479249487?uo=4


      Hack Features:
      - Unlimited Moves -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] BLEACH Soul Puzzle v1.0.0 +1 Cheat [ Unlimited Moves ] - 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/
      • 18 replies
    • West Escape +7++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: West Escape By Estoty LLC
      Bundle ID: com.western.escape
      iTunes Store Link: https://apps.apple.com/us/app/west-escape/id6474681724?uo=4


      Hack Features:
      - Unlimited Everything
      - God Mode
      - God Mode - Horse
      - One-Hit Kill
      - No Ads -> Head into Settings and toggle the Discord Support button.


      Jailbreak required hack(s): [Mod Menu Hack] West Escape v1.0.13 +7++ Cheats [ Unlimited Everything ] - 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/
      • 69 replies
    • Void Reaper - Idle RPG v1.0.4 [ +3 APK MOD ] Currency Max
      Mod APK Game Name: Void Reaper - Idle RPG
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.rpg.voidreaper&hl=en

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Blood
      - Unlimited Soul
      • 0 replies
    • Void Reaper - Idle RPG v1.0.6 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Void Reaper - Idle RPG By Karate Gorilla
      Bundle ID: com.rpg.voidreaper
      App Store Link: https://apps.apple.com/us/app/void-reaper-idle-rpg/id6757342365?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Blood
      - Unlimited Soul
      • 0 replies
    • Void Reaper - Idle RPG v1.0.6 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Void Reaper - Idle RPG By Karate Gorilla
      Bundle ID: com.rpg.voidreaper
      App Store Link: https://apps.apple.com/us/app/void-reaper-idle-rpg/id6757342365?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

      - Unlimited Gems
      - Unlimited Blood
      - Unlimited Soul

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS 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.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 2 replies
    • Dungeon Rush v33 [ +8 Cheats ] Currency Max
      Modded/Hacked App: Dungeon Rush By LAVA LABS OYUN YAZILIM VE PAZARLAMA ANONIM SIRKETI
      Bundle ID: com.lavalabs.dungeonrush
      App Store Link: https://apps.apple.com/us/app/dungeon-rush/id6766563652?uo=4

      🤩 Hack Features

      Pre Activated
      - Unlimited Gems
      - Unlimited Loot Box
      - Unlimited Summon Currency
      - Unlimited Red Dungeon Keys
      - Unlimited Green Dungeon Keys
      - Unlimited Mining Tools +3
      - Max EXP
      - Max Level / Easy To Get Higher Level Weapon / ATK HP DEF
      • 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