手动重新生成 .proto 文件时出错
Error manually regenerating .proto files
我正在尝试实现本教程中的便利贴应用程序https://cloud.google.com/solutions/mobile/mobile-compute-engine-grpc
但是,当我尝试手动重新生成我的 .proto 文件时,我收到以下错误消息
-bash: !ProtoCompiler/protoc: event not found
这是我正在尝试 运行 在命令行上执行的命令
../Pods/!ProtoCompiler/protoc —plugin=protoc-gen-grpc=../Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin —objc_out=. —grpc_out=. -I . -I ../Pods/!ProtoCompiler *.proto
不确定错误是什么
!
是 bash 中的一个特殊字符,用于 History Expansion Event Designation
单引号包含它的参数字符串或使用 \
转义
../Pods/\!ProtoCompiler/protoc —plugin=protoc-gen-grpc='../Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin' —objc_out=. —grpc_out=. -I . -I '../Pods/!ProtoCompiler' *.proto
更好的是,重命名 directory/binaries,这样它们就没有 !
。
我正在尝试实现本教程中的便利贴应用程序https://cloud.google.com/solutions/mobile/mobile-compute-engine-grpc
但是,当我尝试手动重新生成我的 .proto 文件时,我收到以下错误消息
-bash: !ProtoCompiler/protoc: event not found
这是我正在尝试 运行 在命令行上执行的命令
../Pods/!ProtoCompiler/protoc —plugin=protoc-gen-grpc=../Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin —objc_out=. —grpc_out=. -I . -I ../Pods/!ProtoCompiler *.proto
不确定错误是什么
!
是 bash 中的一个特殊字符,用于 History Expansion Event Designation
单引号包含它的参数字符串或使用 \
../Pods/\!ProtoCompiler/protoc —plugin=protoc-gen-grpc='../Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin' —objc_out=. —grpc_out=. -I . -I '../Pods/!ProtoCompiler' *.proto
更好的是,重命名 directory/binaries,这样它们就没有 !
。