简体   繁体   中英

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

/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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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