/bin/bash: line 3: Pods/!ProtoCompiler/protoc: Bad CPU type in executable

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

参考文章

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容