Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install deb files compiled #1

Open
runyoH opened this issue Oct 9, 2023 · 8 comments
Open

How to install deb files compiled #1

runyoH opened this issue Oct 9, 2023 · 8 comments

Comments

@runyoH
Copy link

runyoH commented Oct 9, 2023

I developed tweak deb , uploaded it to the device. dpkg -i reported an error.
tweak is inject SpringBoard

@roothide
Copy link
Collaborator

roothide commented Oct 9, 2023

details?

@runyoH
Copy link
Author

runyoH commented Oct 9, 2023

dpkg: error processing archive /var/tmp/com.iosyj.testjb_0.0.1-2+debug_iphoneos-arm.deb (--install):
package architecture (iphoneos-arm) does not match system (iphoneos-arm64e)
Errors were encountered while processing:
/var/tmp/com.iosyj.testjb_0.0.1-2+debug_iphoneos-arm.deb


runyoH@runyoHhudeMac-mini testjb % otool -L /Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib:
/Library/MobileSubstrate/DynamicLibraries/testjb.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 1860.0.0)
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 1860.0.0)
@loader_path/.jbroot/usr/lib/libsubstrate.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.25.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.120.1)

runyoH@runyoHhudeMac-mini testjb % file /Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib: Mach-O universal binary with 3 architectures: [arm_v7:Mach-O dynamically linked shared library arm_v7Mach-O dynamically linked shared library arm_v7] [arm64:Mach-O 64-bit dynamically linked shared library arm64Mach-O 64-bit dynamically linked shared library arm64] [arm64e:Mach-O 64-bit dynamically linked shared library arm64eMach-O 64-bit dynamically linked shared library arm64e]
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib (for architecture armv7): Mach-O dynamically linked shared library arm_v7
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib (for architecture arm64e): Mach-O 64-bit dynamically linked shared library arm64e'

@roothide
Copy link
Collaborator

roothide commented Oct 9, 2023

It seems that the package arch you built is not for roothide.
usually theos handles it automatically.
Are you sure you are using theos from roothide?

@roothide
Copy link
Collaborator

roothide commented Oct 9, 2023

If you use other methods to build the package (such as xcode),
please manually change the package arch in the control file to iphoneos-arm64e

@runyoH
Copy link
Author

runyoH commented Oct 9, 2023

sure yes,

otool -L /Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib

If not, this will not exist
@loader_path/.jbroot/usr/lib/libsubstrate.dylib

file /Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib: Mach-O universal binary with 3 architectures: [arm_v7:Mach-O dynamically linked shared library arm_v7Mach-O dynamically linked shared library arm_v7] [arm64:Mach-O 64-bit dynamically linked shared library arm64Mach-O 64-bit dynamically linked shared library arm64] [arm64e:Mach-O 64-bit dynamically linked shared library arm64eMach-O 64-bit dynamically linked shared library arm64e]
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib (for architecture armv7): Mach-O dynamically linked shared library arm_v7
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
/Users/runyoH/roothide/testjb/packages/Library/MobileSubstrate/DynamicLibraries/testjb.dylib (for architecture arm64e): Mach-O 64-bit dynamically linked shared library arm64e'

@roothide
Copy link
Collaborator

roothide commented Oct 9, 2023

check package arch in your control file?
or could you share your control file to see what happened to theos.

@runyoH
Copy link
Author

runyoH commented Oct 11, 2023

@roothide Thanks, I installed it successfully. is a new problem, tweak is not injected into SpringBoard,SHowTouch downloaded from the repo works normally.

@roothide
Copy link
Collaborator

roothide commented Oct 11, 2023

try

ps -A | grep SpringBoard
opainject   pid   $(jbroot)/usr/lib/TweakInject/yourtweak.dylib

in shell/NewTerm3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant