chomper icon indicating copy to clipboard operation
chomper copied to clipboard

fix error about file path

Open Yiiff opened this issue 1 year ago • 5 comments

When running iOS programs with chomper, a path error was encountered, and the judgment logic was added

Yiiff avatar Apr 20 '24 10:04 Yiiff

Thanks for your commit. What specific error did you encounter? The logic you added seems to be duplicated. If the dylib file exists, it will be recognized by lib_path and will not continue to recognize framework_path.

sledgeh4w avatar Apr 20 '24 12:04 sledgeh4w

Thanks for your commit. What specific error did you encounter? The logic you added seems to be duplicated. If the dylib file exists, it will be recognized by lib_path and will not continue to recognize framework_path.

I encountered a situation where when the suffix is ​​.dylib, .framework is still spliced ​​in, and the final generated path is xxx.dylib.framework, which will cause "Module xxx not found."

Yiiff avatar Apr 22 '24 08:04 Yiiff

After cloning the repo, I encountered the capstone problem, which prompted that arm64 and macOS versions were required. I could compile the specified version myself and replace the files in venv. https://github.com/sledgeh4w/chomper/issues/65#issue-2254482451

So far, example_ios_ali_vmp_sign.py, example_ios_bangbang.py, and example_ios_ijm.py can all run smoothly.

Thank you for your open source.

Yiiff avatar Apr 22 '24 08:04 Yiiff

Thanks for your commit. What specific error did you encounter? The logic you added seems to be duplicated. If the dylib file exists, it will be recognized by lib_path and will not continue to recognize framework_path.

I encountered a situation where when the suffix is ​​.dylib, .framework is still spliced ​​in, and the final generated path is xxx.dylib.framework, which will cause "Module xxx not found."

Perhaps you just didn't pass the correctly rootfs_path? Installing through pip does not come with related library files (they are too large).

sledgeh4w avatar Apr 22 '24 18:04 sledgeh4w

Thanks for your commit. What specific error did you encounter? The logic you added seems to be duplicated. If the dylib file exists, it will be recognized by lib_path and will not continue to recognize framework_path.

I encountered a situation where when the suffix is ​​.dylib, .framework is still spliced ​​in, and the final generated path is xxx.dylib.framework, which will cause "Module xxx not found."

Perhaps you just didn't pass the correctly rootfs_path? Installing through pip does not come with related library files (they are too large).

Sorry, it's my mistake. This is indeed a problem with rootfs_path.

Yiiff avatar Apr 23 '24 06:04 Yiiff