[GH-ISSUE #298] [BUG] Tweak Dylib injections errors #273

Closed
opened 2026-03-03 15:32:15 +03:00 by kerem · 3 comments
Owner

Originally created by @ShadowRoi on GitHub (Jan 6, 2025).
Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/298

Describe the bug

Hello I have been playing around with the tweak injection and it’s a really really powerful feature.

From the read me I read that it can inject Cydia substrate tweaks, a tweak I tried which is an Adblocker works well. Another one that’s supposed to kill network entirely(unsure if this requires jailbreak environment) Doesn’t work at all but that doesn’t matter here.

what’s probably a bug to this app though is that “Network killswitch Dylib“ crashes on some apps and not on others(even though it doesn’t work anyway)

The error.
‘’’
dlopen(/private/var/mobile/Containers/Data/Application/AC164C52-30C1-487A-9093-2AFC4971CA02/Documents/Tweaks/Network KillSwitch /DisconnectAppNetwork.dylib, 0x0009): Library not loaded: /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate
Referenced from: <338CA4DC-EB03-4506-893F-394C5A43BA75> /private/var/mobile/Containers/Data/Application/AC164C52-30C1-487A-9093-2AFC4971CA02/Documents/Tweaks/Network KillSwitch /DisconnectAppNetwork.dylib
Reason: tried: '/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate' (no such file), '/private/preboot/Cryptexes/OS/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate' (no such file), '/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate' (no such file)
‘’’

Instructions to reproduce

Use the tweak from https://github.com/DevelopCubeLab/DisconnectAppNetwork

Inject it into IPAs. (Specifically it crashes on this one that I used for testing https://github.com/DevelopCubeLab/DisableAccelerometer/releases/download/1.0/AccelerometerLab_2024-10-24_01_34.ipa)

What version of LiveContainer are you using?

3.1.0

Other info

Honestly finding Dylib tweaks for a non jail broken environment it’s actually extremely difficult. It would be lovely if we could get add some workings ones built into the app or list them somewhere or something so we can easily use them or find them. I can provide one that I have found that works well (blocks Ads).

Originally created by @ShadowRoi on GitHub (Jan 6, 2025). Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/298 ### Describe the bug Hello I have been playing around with the tweak injection and it’s a really really powerful feature. From the read me I read that it can inject Cydia substrate tweaks, a tweak I tried which is an Adblocker works well. Another one that’s supposed to kill network entirely(unsure if this requires jailbreak environment) Doesn’t work at all but that doesn’t matter here. what’s probably a bug to this app though is that “Network killswitch Dylib“ crashes on some apps and not on others(even though it doesn’t work anyway) The error. ‘’’ dlopen(/private/var/mobile/Containers/Data/Application/AC164C52-30C1-487A-9093-2AFC4971CA02/Documents/Tweaks/Network KillSwitch /DisconnectAppNetwork.dylib, 0x0009): Library not loaded: /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate Referenced from: <338CA4DC-EB03-4506-893F-394C5A43BA75> /private/var/mobile/Containers/Data/Application/AC164C52-30C1-487A-9093-2AFC4971CA02/Documents/Tweaks/Network KillSwitch /DisconnectAppNetwork.dylib Reason: tried: '/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate' (no such file), '/private/preboot/Cryptexes/OS/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate' (no such file), '/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate' (no such file) ‘’’ ### Instructions to reproduce Use the tweak from https://github.com/DevelopCubeLab/DisconnectAppNetwork Inject it into IPAs. (Specifically it crashes on this one that I used for testing https://github.com/DevelopCubeLab/DisableAccelerometer/releases/download/1.0/AccelerometerLab_2024-10-24_01_34.ipa) ### What version of LiveContainer are you using? 3.1.0 ### Other info Honestly finding Dylib tweaks for a non jail broken environment it’s actually extremely difficult. It would be lovely if we could get add some workings ones built into the app or list them somewhere or something so we can easily use them or find them. I can provide one that I have found that works well (blocks Ads).
kerem 2026-03-03 15:32:15 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@hugeBlack commented on GitHub (Jan 7, 2025):

As you have already realized, this is a jailbroken tweak that won't work in lc.

Jailbroken tweaks can do more things than jailed ones, so it's unlikely they will work in lc even if finding cydiasbstrate issues are solved.

So please build a jailed tweak as the tweak is open-source so it's pretty easy to do that.

<!-- gh-comment-id:2574199938 --> @hugeBlack commented on GitHub (Jan 7, 2025): As you have already realized, this is a jailbroken tweak that won't work in lc. Jailbroken tweaks can do more things than jailed ones, so it's unlikely they will work in lc even if finding cydiasbstrate issues are solved. So please build a jailed tweak as the tweak is open-source so it's pretty easy to do that.
Author
Owner

@ShadowRoi commented on GitHub (Jan 7, 2025):

@hugeBlack Jailbroken tweaks are different than jailed ones? Don’t both require your device to be jailbroken? This is so confusing.

And all those tweaks are extremely hard to find as well, I wonder if we could have some kind of list where we could have some working ones or something? I am sure it could be really useful for other newbie people as well.

Also is it possible in theory for live container to have a setting to block internet access of specific apps that run from it? That could be a really powerful.

<!-- gh-comment-id:2574236860 --> @ShadowRoi commented on GitHub (Jan 7, 2025): @hugeBlack Jailbroken tweaks are different than jailed ones? Don’t both require your device to be jailbroken? This is so confusing. And all those tweaks are extremely hard to find as well, I wonder if we could have some kind of list where we could have some working ones or something? I am sure it could be really useful for other newbie people as well. Also is it possible in theory for live container to have a setting to block internet access of specific apps that run from it? That could be a really powerful.
Author
Owner

@hugeBlack commented on GitHub (Jan 7, 2025):

  1. Jailed tweaks are tweaks that can be directly injected into apps and can work in jailed environment, while jailbroken tweaks are tweaks designed to work in jailbroken environment. Jailbroken tweaks often directly link CydiaSubstrate in system library, while jailed tweaks finds CydiaSubstrate in app's Frameworks folder.

The tweak you are injecting is a jailbroken tweak that links CydiaSubstrate in the system library so it complains about "no such file"

  1. No, I can't provide a list of tweaks. You have to find it by yourself.

  2. Yes, it's possible, but LiveContainer's primary goal is to make app behave as if they were directly sideloaded, not altering how they work. So that won't be a feature in LiveContainer unless some one make a pr.

<!-- gh-comment-id:2574265600 --> @hugeBlack commented on GitHub (Jan 7, 2025): 1. Jailed tweaks are tweaks that can be directly injected into apps and can work in jailed environment, while jailbroken tweaks are tweaks designed to work in jailbroken environment. Jailbroken tweaks often directly link CydiaSubstrate in system library, while jailed tweaks finds CydiaSubstrate in app's Frameworks folder. The tweak you are injecting is a jailbroken tweak that links CydiaSubstrate in the system library so it complains about "no such file" 2. No, I can't provide a list of tweaks. You have to find it by yourself. 3. Yes, it's possible, but LiveContainer's primary goal is to make app behave as if they were directly sideloaded, not altering how they work. So that won't be a feature in LiveContainer unless some one make a pr.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LiveContainer#273
No description provided.