If you want help with that project, I'd suggest opening an issue with that 
project.

The Swift protobuf support we're working on with Apple can be found 
at https://github.com/apple/swift-protobuf.

TVL


On Wednesday, January 18, 2017 at 5:58:00 AM UTC-5, Kanishka Vedi wrote:
>
> Hi,
>
> I am trying to work on swift3 and want to use protobuf. Took latest code 
> from "https://github.com/alexeyxo/protobuf-swift"; but when running 
> "./scripts/build.sh" 
> i get this error. 
>
>
> In file included from swift_file.cc:23:
>
> *./google/protobuf/descriptor.pb.h:12:2: **error: **This file was 
> generated by a newer version*
>
> *      of protoc which is*
>
> #error This file was generated by a newer version of protoc which is
>
> * ^*
>
> *./google/protobuf/descriptor.pb.h:13:2: **error: **incompatible with 
> your Protocol Buffer*
>
> *      headers. Please update*
>
> In file included from swift_generator.cc:22#error incompatible with your 
> Protocol Buffer headers.  Please update:
>
>
> * ^*
>
> *./google/protobuf/descriptor.pb.h:12./google/protobuf/descriptor.pb.h::214:: 
> 2*:* error*: error*: Thisyour  fileheaders. *was
>
>  generated by a newer #error your headers.version
>
>
> *       ^of*
>
>  protoc which is
>
> #error This file was generated by a newer version of protoc which is
>
> * ^*
>
> *./google/protobuf/descriptor.pb.h:13:2: **error: **incompatible with 
> your Protocol Buffer*
>
> *      headers. Please update*
>
> #error incompatible with your Protocol Buffer headers.  Please update
>
> * ^./google/protobuf/descriptor.pb.h*
>
> *:*22:10:*./google/protobuf/descriptor.pb.h :*14*:fatal error2: :* 
> *'google/protobuf/arena.h'error 
> : file* *notyour*
>
> *       headers.found*
>
>
> #error your headers.
>
> * ^*
>
> #include <google/protobuf/arena.h>
>
> *         ^*
>
> *./google/protobuf/descriptor.pb.h:22:10: **fatal error: 
> **'google/protobuf/arena.h' 
> file not*
>
> *      found*
>
>
> Now, i check "vim 
> ./plugin/compiler/google/protobuf/swift-descriptor.pb.h" & "vim 
> ./plugin/compiler/google/protobuf/descriptor.pb.h" and i see 
>
> #if GOOGLE_PROTOBUF_VERSION < 3001000
>
> #error This file was generated by a newer version of protoc which is
>
> #error incompatible with your Protocol Buffer headers.  Please update
>
> #error your headers.
>
> #endif
>
>
> Then i checked my protoc version --
>
> protoc --version
>
> libprotoc 2.6.1
>
>
> How do i upgrade the version to 3 ? Could you please help me
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to