简体   繁体   English

Zipalign 无法正常工作 Catalina Mac OS,可执行文件中的 CPU 类型错误

[英]Zipalign not working Catalina Mac OS , Bad CPU type in executable

After the install of Catalina Mac Os I starting to see this error when I run zipalign安装 Catalina Mac Os 后,我在运行 zipalign 时开始看到此错误

/usr/local/bin/zipalign: line 3: /usr/local/Cellar/android-sdk/24.4.1_1/build-tools/23.0.1/zipalign: Bad CPU type in executable
/usr/local/bin/zipalign: line 3: /usr/local/Cellar/android-sdk/24.4.1_1/build-tools/23.0.1/zipalign: Undefined error: 0

looking for solutions I found that may be related to the fact that catalina only runs 64bit apps and zipalign is 32, couldn't find a 64 bit version.寻找解决方案,我发现这可能与 catalina 仅运行 64 位应用程序和 zipalign 是 32,找不到 64 位版本有关。 any ideas?有任何想法吗?

I found the issue, catalina changes the shell by default or something related to it, I had a bash script /usr/local/bin/zipalign, that fixed the run of zipalign to /bin/bash producing the error, so removed the /usr/local/bin/zipalign file and added an export to the folder that contains the file directly.我发现了问题,catalina 默认更改了 shell 或与之相关的内容,我有一个 bash 脚本 /usr/local/bin/zipalign,它修复了 zipalign 到 /bin/bash 的运行产生错误,所以删除了 / usr/local/bin/zipalign 文件,并将导出添加到直接包含该文件的文件夹中。

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

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