iOS項(xiàng)目使用了grpc,在M系列上執(zhí)行pod install時(shí)提示/bin/bash: line 3: Pods/!ProtoCompiler/protoc: Bad CPU type in executable
案怯,解決方案不下:
在終端執(zhí)行/usr/sbin/softwareupdate --install-rosetta --agree-to-license
,執(zhí)行完提示如下表示成功,問題即可解決。
By using the agreetolicense option, you are agreeing that you have run this tool with the license only option and have read and agreed to the terms.
If you do not agree, press CTRL-C and cancel this process immediately.
2024-08-25 17:04:32.124 softwareupdate[30726:323565] Package Authoring Error: 052-22577: Package reference com.apple.pkg.RosettaUpdateAuto is missing installKBytes attribute
Install of Rosetta 2 finished successfully