简体   繁体   English

“可执行文件中的CPU类型错误”

[英]“Bad CPU Type in executable”

I ssh into my jailbroken iPhone 7 with my iMac to follow a tutorial ( this one) . 我将iMac放入越狱的iPhone 7中,以遵循教程( 教程 When I type the command "cycript -p SpringBoard", it gives me this error: 当我键入命令“ cycript -p SpringBoard”时,它给了我这个错误:

Bad CPU type in executable 可执行文件中的CPU类型错误

How can I solve this? 我该如何解决?

Probably your phone has some ARM processor, and your laptop some x86-64 one. 可能您的手机装有一些ARM处理器,而笔记本电脑则装有x86-64

You should not expect an executable for ARM to run on x86-64 or vice versa (even if both run some variant of MacOSX or of iOS). 您不应该期望ARM的可执行文件可以在x86-64上运行,反之亦然(即使两者都运行MacOSX或iOS的某些变体)。

Maybe you want some emulator . 也许您想要一些模拟器 Or you could use some cross-compiler tool (eg to compile on your laptop an executable for your phone). 或者,您可以使用一些交叉编译器工具(例如,在笔记本电脑上编译手机的可执行文件)。

You certainly need to understand more about operating systems , computer architecture , instruction set architecture . 您当然需要更多地了解操作系统计算机体系结构指令集体系结构 I recommend reading Operating Systems: Three Easy Pieces . 我建议阅读操作系统:三篇简单的文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM