iOS项目使用了grpc,在M系列上执行pod install时提示/bin/bash: line 3: Pods/!ProtoCompiler/protoc: Bad CPU type in executable
,解决方案不下:
在终端执行/usr/sbin/softwareupdate --install-rosetta --agree-to-license
,执行完提示如下表示成功,问题即可解决。
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
网友评论