File does not reside within any

2018-07-02  本文已影响1422人  ablac

使用--proto_path=. --swift_out=. ***.proto 生成swift文件时
报错:
File does not reside within any path specified using --proto_path (or -I). You must specify a --proto_path which encompasses this file. Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think).

给出明确的路径就可以了,如:
protoc --proto_path=/Users/Mac/Documents --swift_out=/Users/Mac/desktop ***.proto

上一篇下一篇

猜你喜欢

热点阅读