Code Monkey home page Code Monkey logo

Comments (15)

alexeyxo avatar alexeyxo commented on June 3, 2024

You should update your protobuf compiler until version 2.6. The version of protobuf 2.6 has been homebrew already.

from protobuf-swift.

jault3 avatar jault3 commented on June 3, 2024

Thanks @alexeyxo , silly mistake. I had forgotten to run brew update and brew upgrade. This fixed the issue. Now running version 2.6.0.

from protobuf-swift.

virl avatar virl commented on June 3, 2024

Same error on version 2.6.1:

./google/protobuf/objectivec-descriptor.pb.h:284:80: error: no member named
      'GetEmptyStringAlreadyInited' in namespace 'google::protobuf::internal'
  ...= const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStr...
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

from protobuf-swift.

alexeyxo avatar alexeyxo commented on June 3, 2024

@virl what is version you using? Objective-c or swift? What obj-c file figurate in version for swift?

from protobuf-swift.

virl avatar virl commented on June 3, 2024

Objective-C installed from CocoaPods. App is Objective-C too.

protoc installed via homebrew.

from protobuf-swift.

alexeyxo avatar alexeyxo commented on June 3, 2024

Please,execute the command protoc --version

from protobuf-swift.

virl avatar virl commented on June 3, 2024

Too late, I'm already using https://github.com/mingchen/protobuf-ios :(

from protobuf-swift.

Freya0Yu avatar Freya0Yu commented on June 3, 2024

Now my libprotoc is 2.6.1 ,but it still has such problems: (1)This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer headers. Please update your headers.(2)no member named 'GetEmptyStringAlreadyInited' in namespace 'google::protobuf::internal What should i do?

from protobuf-swift.

alexeyxo avatar alexeyxo commented on June 3, 2024

Try this:

brew update && brew upgrade
brew install protobuf-swift

from protobuf-swift.

Freya0Yu avatar Freya0Yu commented on June 3, 2024

Can it support objective c?

from protobuf-swift.

alexeyxo avatar alexeyxo commented on June 3, 2024

Unfortunately, protobuf-swift not support objective-c.

from protobuf-swift.

Freya0Yu avatar Freya0Yu commented on June 3, 2024

I met those errors when I install protobuf-objc,I'm sorry that I left a note at wrong place .I do as https://github.com/alexeyxo/protobuf-objc told but it does't work.

from protobuf-swift.

alexeyxo avatar alexeyxo commented on June 3, 2024

I think, your problem in old version Google Protobuf. Please, remove and install protobuf from homebrew.

from protobuf-swift.

Freya0Yu avatar Freya0Yu commented on June 3, 2024

Thanks a lot ! Now I have it installed!

from protobuf-swift.

zengadget avatar zengadget commented on June 3, 2024

I'm having same issue with https://github.com/alexeyxo/protobuf-objc and I updated/upgraded brew and install latest protobuf.

protoc --version ... returns ... libprotoc 2.6.1

and ./scripts/build.sh still returns these errors:

./google/protobuf/descriptor.pb.h:3042:50: error: no member named 'GetEmptyStringAlreadyInited' in namespace
'google::protobuf::internal'
if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {

Any Ideas what to do to fix?

from protobuf-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.