Jump to content

 Something great is coming! 🤖

Stay tuned for the big reveal happening here on iOSGods on the 20th of February!

The countdown has finished!

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

    • The Tower - Idle Tower Defense v27.4.4 Jailed Cheats +2
      Modded/Hacked App: The Tower - Idle Tower Defense By Tech Tree Games LLC
      Bundle ID: com.TechTreeGames.TheTower
      App Store Link: https://apps.apple.com/us/app/the-tower-idle-tower-defense/id1575590830?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Free iAP ( Turn on inside iOSGods Mod Menu first )
      - iGameGod Cheat Engine Enabled ( modify in-game currency and speed up stage )

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/154025-the-tower-idle-tower-defense-v2706-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 190 replies
    • Cooking Craze: Restaurant Game Cheats v2.12.0 +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
      • 11 replies
    • DungeonSlasher (Auto Update) +3 Jailed Cheats
      Modded/Hacked App: DungeonSlasher By gihyeon lim
      Bundle ID: com.nspgames.dungeonslasher
      iTunes Store Link: https://apps.apple.com/us/app/dungeonslasher/id1620305888?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Never Die
      - Drop Multiplier
      - Free iAP


      Jailbreak required hack(s): https://iosgods.com/topic/174645-dungeonslasher-auto-update-3-cheats/


      iOS Hack Download IPA Link: https://iosgods.com/topic/185302-dungeonslasher-auto-update-3-jailed-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 152 replies
    • Subway Surfers Cheats (Auto Update) +5
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?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

      - Free Store (not Free iAP)
      - Free iAP (ViP Only)
      - Unlock Characters Outfit
      - Custom Jump Height
      - No Clip (To end level swipe to left til you get dizzy, swipe again and you will lose)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119795-subway-surfers-v3425-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119793-subway-surfers-cheats-v3430-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,404 replies
    • Idle Weapon Shop v1.9.6 Jailed Cheats +2
      Modded/Hacked App: Idle Weapon Shop By HOT GAMES CO., LIMITED
      Bundle ID: com.hg.idleweaponshoptycoon
      App Store Link: https://apps.apple.com/us/app/idle-weapon-shop/id6739552291?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Freeze Currencies
      - Premium

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/206212-idle-weapon-shop-v196-jailed-cheats-2/
      • 0 replies
    • Candy Crush Saga v1.321.3 Jailed Cheats +3
      Modded/Hacked App: Candy Crush Saga By King.com Limited
      Bundle ID: com.midasplayer.apps.candycrushsaga
      iTunes Store Link: https://apps.apple.com/us/app/candy-crush-saga/id553834731?uo=4


      Hack Features:
      - Infinite Life
      - Infinite Booster
      - Infinite Move


      Jailbreak required hack(s): https://iosgods.com/topic/190447-candy-crush-saga-cheats-v12941-3/


      iOS Hack Download IPA Link: https://iosgods.com/topic/190448-candy-crush-saga-v12941-jailed-cheats-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 209 replies
    • Hill Climb Racing 2 Cheats v1.71.4 +1
      Modded/Hacked App: Hill Climb Racing 2 By Fingersoft
      Bundle ID: com.fingersoft.hillclimbracing2
      iTunes Store Link: https://apps.apple.com/us/app/hill-climb-racing-2/id1146465836?uo=4


      Hack Features:
      - Freeze Coins
      - Freeze Gems
      - Freeze Scraps


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/108295-hill-climb-racing-2-v1611-jailed-cheats-2/


      iOS Hack Download Link: https://iosgods.com/topic/108298-hill-climb-racing-2-v1612-cheats-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,222 replies
    • K-POP Idol Producer v2.38 Jailed Cheats +1
      Modded/Hacked App: K-POP Idol Producer By Daehyun Lee
      Bundle ID: com.buildupstudio.idolproducer
      App Store Link: https://apps.apple.com/us/app/k-pop-idol-producer/id1476232656?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Freeze Currencies

       

      Jailbroken Hack: https://iosgods.com/topic/126451-k-pop-idol-producer-cheats-v232-1/

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/123035-k-pop-idol-producer-v232-jailed-cheats-1/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 67 replies
    • June’s Journey: Hidden Objects Cheats v3.54.1 +2
      Modded/Hacked App: June’s Journey: Hidden Objects By wooga gmbh
      Bundle ID: net.wooga.junes-journey-hidden-object-mystery-game
      iTunes Store Link: https://apps.apple.com/us/app/junes-journey-hidden-objects/id1200391796?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Infinite Currencies
      - Instant Hint


      iOS Hack Download Link: https://iosgods.com/topic/176105-june%E2%80%99s-journey-hidden-objects-cheats-v3534-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 72 replies
    • Last Day On Earth: Survival v1.45.0 +36 FREE Hacks
      Modded/Hacked App: Last Day on Earth: Survival By Andrey Pryakhin
      Bundle ID: zombie.survival.craft.z
      iTunes Link: https://itunes.apple.com/us/app/last-day-on-earth-survival/id1241932094

      Hack Features:
      - Coins Hack - Spend/Buy something that costs Coins to increase Coins!
      - Durability Hack - Weapons, Clothes, Boots, etc. Will not break. You can always keep using them.
      - Crafting Hack - Able to craft stuff without required items!
      - Skill Points Hack - Skill Points won't decrease, reset to increase.
      - Duplicate Items Hack - Split Items to duplicate them! Now it will duplicate by 20!
      - Loot box hack - Open 1 lootbox for 1000! - x64 only
      - Items increase when Taking from Inbox. You will never run out of Items in your inbox! - x64 only
      - Minigun Doesn't Overheat - x64 only
      - Unlimited Energy. Energy Increases instead of subtracting! - x64 only
      - Bow One Hit Kill - x64 only
      - Anti-Ban

      During the month of December, we have decided to make the ViP hack for free for all users! :) Extra features include:
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 30,343 replies
    • Alien Invasion: RPG Idle Space v4.35.01 Jailed Cheats +1
      Modded/Hacked App: Alien Invasion: RPG Idle Space By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.multicastgames.venomSurvive
      App Store Link: https://apps.apple.com/us/app/alien-invasion-rpg-idle-space/id6443697602?uo=4

       

      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Freeze Currencies
      - Premium


      Jailbreak required hack(s): https://iosgods.com/topic/167589-alien-invasion-rpg-idle-space-cheats-auto-update-2/


      iOS Hack Download IPA Link: https://iosgods.com/topic/167591-alien-invasion-rpg-idle-space-v43400-jailed-cheats-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 590 replies
    • [ The Battle Cats JP ] にゃんこ大戦争 Cheats v15.2.0 +3
      Modded/Hacked App: にゃんこ大戦争 By ponos corporation
      Bundle ID: jp.co.ponos.battlecats
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89/id547145938?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

      - Infinite Cash
      - OHK Linked w/ Enemy
      - Infinite Cat Foods & EXP*

       

      Non-Jailbroken Hack: https://iosgods.com/topic/194335-the-battle-cats-jp-%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89-v1432-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194334-the-battle-cats-jp-%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89-cheats-v1432-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 53 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