[GH-ISSUE #167] [Question] How to install tweaks in LiveContainer #148

Closed
opened 2026-03-03 15:31:00 +03:00 by kerem · 7 comments
Owner

Originally created by @Vishram1123 on GitHub (Sep 24, 2024).
Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/167

I apologize if this isn't the right place to ask, but I have been wondering, how do I install tweaks for apps in LiveContainer? I have tried to add tweaks in a .deb format as well as extracted .dylib files from the archives in the "tweaks" tab (this is version 3.0.0-release (main/6574fdd)), into folders (setting the per-app tweak folder as necessary) and in the global tab. When I add a .deb file, apps launch with no effect caused by the tweak, but with a .dylib, the following error occurs:

Error
dlopen(/private/var/mobile/Containers/Data/Application/57B2AB76-D571-43AB-A898-AC84868B708D/Documents/Tweaks/SideloadSpoofer-07.dylib, 0x0009): Library not loaded: /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate
  Referenced from: <4C0791DA-D818-30AA-B4B8-08298847A953> /private/var/mobile/Containers/Data/Application/57B2AB76-D571-43AB-A898-AC84868B708D/Documents/Tweaks/SideloadSpoofer-07.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), '/System/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate' (no such file, not in dyld cache)

This happens even after using install_name_tool -change /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate @loader_path/CydiaSubstrate.framework/CydiaSubstrate SideloadSpoofer-07.dylib to fix the CydiaSubstrate linking.

Edit: I tried this with YTSideloadFix on Youtube and Youtube Music, BHInsta on Instagram, as well as SideloadSpoofer-07 from Sideloadly's servers, and none of these work

Originally created by @Vishram1123 on GitHub (Sep 24, 2024). Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/167 I apologize if this isn't the right place to ask, but I have been wondering, how do I install tweaks for apps in LiveContainer? I have tried to add tweaks in a .deb format as well as extracted .dylib files from the archives in the "tweaks" tab (this is `version 3.0.0-release (main/6574fdd)`), into folders (setting the per-app tweak folder as necessary) and in the global tab. When I add a .deb file, apps launch with no effect caused by the tweak, but with a .dylib, the following error occurs: <details><summary>Error</summary> <pre> dlopen(/private/var/mobile/Containers/Data/Application/57B2AB76-D571-43AB-A898-AC84868B708D/Documents/Tweaks/SideloadSpoofer-07.dylib, 0x0009): Library not loaded: /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate Referenced from: <4C0791DA-D818-30AA-B4B8-08298847A953> /private/var/mobile/Containers/Data/Application/57B2AB76-D571-43AB-A898-AC84868B708D/Documents/Tweaks/SideloadSpoofer-07.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), '/System/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate' (no such file, not in dyld cache) </pre> </details> This happens even after using `install_name_tool -change /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate @loader_path/CydiaSubstrate.framework/CydiaSubstrate SideloadSpoofer-07.dylib` to fix the CydiaSubstrate linking. Edit: I tried this with YTSideloadFix on Youtube and Youtube Music, BHInsta on Instagram, as well as SideloadSpoofer-07 from Sideloadly's servers, and none of these work
kerem closed this issue 2026-03-03 15:31:01 +03:00
Author
Owner

@hugeBlack commented on GitHub (Sep 25, 2024):

Can't reproduce. Are you sure you imported the modified one? From the error you provide I cannot find any indication of it trying to load CydiaSubstrate from @loader_path. I can successfully load it if I use @loader_path or @rpath.

By the way, LiveContainer is shipped with CydiaSubstrate so you can directly use it if you use @rpath.

<!-- gh-comment-id:2372828821 --> @hugeBlack commented on GitHub (Sep 25, 2024): Can't reproduce. Are you sure you imported the modified one? From the error you provide I cannot find any indication of it trying to load CydiaSubstrate from @loader_path. I can successfully load it if I use @loader_path or @rpath. By the way, LiveContainer is shipped with CydiaSubstrate so you can directly use it if you use @rpath.
Author
Owner

@Vishram1123 commented on GitHub (Sep 25, 2024):

Okay, so the dylib injection works with @rpath instead of @loader_path, but how do I inject straight .deb files? Do I have to extract deb files and run the install_name_tool command? If so, is there a way to do this on-device, using iSH or similar?

<!-- gh-comment-id:2372912693 --> @Vishram1123 commented on GitHub (Sep 25, 2024): Okay, so the dylib injection works with @rpath instead of @loader_path, but how do I inject straight .deb files? Do I have to extract deb files and run the install_name_tool command? If so, is there a way to do this on-device, using iSH or similar?
Author
Owner

@hugeBlack commented on GitHub (Sep 25, 2024):

deb is not currently supported in LiveContainer. It is possible to manipulate MachO headers on-device, but I don't know if there's a tool out there.

<!-- gh-comment-id:2373023292 --> @hugeBlack commented on GitHub (Sep 25, 2024): deb is not currently supported in LiveContainer. It is possible to manipulate MachO headers on-device, but I don't know if there's a tool out there.
Author
Owner

@Vishram1123 commented on GitHub (Sep 25, 2024):

llvm-install-name-tool is available with iSH it seems, so I'm using that for now

<!-- gh-comment-id:2373043192 --> @Vishram1123 commented on GitHub (Sep 25, 2024): llvm-install-name-tool is available with iSH it seems, so I'm using that for now
Author
Owner

@Vishram1123 commented on GitHub (Sep 25, 2024):

Also it's weird because I added the deb one time, and it worked, but when I restarted the app, it stopped working and didn't do anything

<!-- gh-comment-id:2373044261 --> @Vishram1123 commented on GitHub (Sep 25, 2024): Also it's weird because I added the deb one time, and it worked, but when I restarted the app, it stopped working and didn't do anything
Author
Owner

@Vishram1123 commented on GitHub (Sep 25, 2024):

It also seems as though there is code in LCTweaksView.swift to account for .deb installation, but I don't really understand how it works.

<!-- gh-comment-id:2375086734 --> @Vishram1123 commented on GitHub (Sep 25, 2024): It also seems as though there is code in LCTweaksView.swift to account for .deb installation, but I don't really understand how it works.
Author
Owner

@hugeBlack commented on GitHub (Dec 16, 2024):

#233

<!-- gh-comment-id:2545195715 --> @hugeBlack commented on GitHub (Dec 16, 2024): #233
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#148
No description provided.