美文网首页
File does not reside within any

File does not reside within any

作者: ablac | 来源:发表于2018-07-02 14:59 被阅读1422次

    使用--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

    相关文章

      网友评论

          本文标题:File does not reside within any

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