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

    • Tower of Winter v1.4.14 [ +1 Cheats ] ATK
      Modded/Hacked App: Tower of Winter By TAILORMADEGAMES
      Bundle ID: com.tailormadegames.tow
      App Store Link: https://apps.apple.com/ph/app/tower-of-winter/id6449329520?uo=4

      🤩 Hack Features

      - ATK Max
      • 0 replies
    • Cats And The Forest v2.0.00 [ +1 Cheats ] Gold Unlimited
      Modded/Hacked App: Cats And The Forest By Super Carrot
      Bundle ID: com.SuperCarrot.CatsAndTheForest
      App Store Link: https://apps.apple.com/ph/app/cats-and-the-forest/id6746228951?uo=4

      🤩 Hack Features

      - Unlimited Gold / Enemy & Boss Drop
        • Like
      • 0 replies
    • Conquest Girls : AFK Idle RPG Cheats v2.12.13 +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

       

      📌 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

      - Multiply Attack
      - Multiply Attack Speed
      - Multiply Attack Range
      - Freeze Currencies (Some arena / section may not support this)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/189660-conquest-girls-afk-idle-rpg-v21164-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/186829-conquest-girls-afk-idle-rpg-cheats-v21167-4/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 55 replies
    • Capcut Premium No Jailbreak 2025!
      Modded/Hacked App: CapCut - Video Editor By Bytedance Pte. Ltd
      Bundle ID: com.lemon.lvoverseas
      iTunes Store Link: https://apps.apple.com/us/app/capcut-video-editor/id1500855883

       

      Requirements:

      - PC / Laptop
      - Tested version Capcut 15.2.1
      - iMazing 2 App (https://imazing.com/download-v2)

       

      Instruction:
      - TURN OFF FIND MY IPHONE FIRST
      - Follow the video

      https://streamable.com/7ftqua

       

      Credits:
      - Huy Nguyen (34306) for the method
        • Like
      • 4 replies
    • BitLife - Life Simulator Cheats v3.20.10 +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,781 replies
    • Potion Punch 2 Cheats v2.9.91 +1
      Modded/Hacked App: Potion Punch 2 by Monstronauts Inc.
      Bundle ID: com.monstronauts.potionpunch2
      iTunes Store Link: https://apps.apple.com/us/app/potion-punch-2/id1463550435?uo=4&at=1010lce4


      Hack Features:
      - Infinite Currencies
      - Free iAP (Turn this on and use with Free iAP Tweak)


      iOS Hack Download Link: https://iosgods.com/topic/112395-arm64-potion-punch-2-cheats-v102-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 97 replies
    • Sushi Bar Idle Cheats v2.8.10 +2
      Modded/Hacked App: Sushi Bar Idle by GREEN PANDA
      Bundle ID: com.gangame.sushibar
      iTunes Store Link: https://itunes.apple.com/us/app/sushi-bar-idle/id1438089337?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Coins
      - No Ads


      Hack Download Link: https://iosgods.com/topic/87577-arm64-sushi-bar-idle-cheats-v115-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 96 replies
    • Tap Tap Fish - AbyssRium Cheats v1.88.0 +1
      Modded/Hacked App: Tap Tap Fish - AbyssRium By SangHeon Kim
      Bundle ID: com.idleif.abyssrium
      iTunes Store Link: https://itunes.apple.com/us/app/tap-tap-fish-abyssrium/id1068366937?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Vitality, Gem, etc ... (Increase When Used) / Untested with Pearl
       

      Hack Download Link: https://iosgods.com/topic/81337-arm64-tap-tap-fish-abyssrium-cheats-v179-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 371 replies
    • My Hot Pot Story Cheats v5.1.3 +1
      Modded/Hacked App: My Hotpot Story By 冲 于
      Bundle ID: com.lxqd.hotpotiver
      iTunes Store Link: https://apps.apple.com/us/app/my-hotpot-story/id1623328997?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/166067-my-hotpot-story-v145-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/166065-my-hotpot-story-cheats-all-versions-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 157 replies
    • FR Legends Cheats v0.3.8 +3
      Modded/Hacked App: FR LEGENDS By FENG LI
      Bundle ID: com.fengiiley.frlegends
      iTunes Store Link: https://itunes.apple.com/us/app/fr-legends/id1435740083?mt=8&uo=4&at=1010lce4


      Hack Features:
      - Custom Gold (Enter the value you want and enable the switch)
      - Custom Cash
      - Infinite Layer


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/79729-arm64-fr-legends-v027-jailed-cheats-3/


      Hack Download Link: https://iosgods.com/topic/79816-arm64-fr-legends-cheats-v029-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 635 replies
    • Mr Autofire Cheats v4.3.1 +3 [ God Mode & More ]
      Modded/Hacked App: Mr Autofire By Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?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

      - God Mode 
      - One Hit Kill
      - Free Store

       

      Non-Jailbroken Hack: https://iosgods.com/topic/134805-mr-autofire-v380-jailed-cheats-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/134788-mr-autofire-cheats-v380-3-god-mode-more/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 639 replies
    • Cooking Craze: Restaurant Game Cheats v2.9.1 +1
      Modded/Hacked App: Cooking Craze: Restaurant Game By Big Fish Games, Inc
      Bundle ID: com.bigfishgames.cookingempireuniversalf2p
      iTunes Store Link: https://apps.apple.com/us/app/cooking-craze-restaurant-game/id1029094059?uo=4

       

      🔧 Mod Requirements

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

       

      🚀 Hack Features

      - Free Store (not Free iAP)


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/topic/191693-cooking-craze-restaurant-game-v240-jailed-cheats-1/

       

      📥 iOS Hack Download Link: https://iosgods.com/topic/191694-cooking-craze-restaurant-game-cheats-v250-1/
        • Agree
        • Like
      • 7 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