美文网首页
iOS grpc 编译报错记录

iOS grpc 编译报错记录

作者: 東玖零 | 来源:发表于2021-06-12 15:07 被阅读0次

昨天更新cocopods,一不小心更新了brew下的所有软件,proto文件更新了,使用pod install 重新编译生成文件,悲剧发生了。

[!] /bin/bash -c
set -e
./ProtocTool/protoc   --plugin=./ProtocTool/protoc-gen-swiftgrpc   --swift_out=./UCloud/GrpcFile   --swiftgrpc_out=./UCloud/GrpcFile   -I ./UCloud-proto   -I ./UCloud-proto   ./UCloud-proto/*.proto

dyld: Library not loaded: /usr/local/Cellar/protobuf/3.10.0/lib/libprotobuf.21.dylib
  Referenced from: /Users/xx/Documents/workspace/ios/xx-iOS/./ProtocTool/protoc
  Reason: image not found

我想解决办法有两种:
1.安装低版本protobuf。
2.另一个是把iOS工程下/Users/xx/Documents/workspace/ios/xx-iOS/./ProtocTool/的protoc更新一下,这个使用GRPC的工程用了好几年了,找了一下以前的记录传送门

相关文章

网友评论

      本文标题:iOS grpc 编译报错记录

      本文链接:https://www.haomeiwen.com/subject/ifhieltx.html