Comments (15)
You should update your protobuf compiler until version 2.6. The version of protobuf 2.6 has been homebrew already.
from protobuf-swift.
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.
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.
@virl what is version you using? Objective-c or swift? What obj-c file figurate in version for swift?
from protobuf-swift.
Objective-C installed from CocoaPods. App is Objective-C too.
protoc installed via homebrew.
from protobuf-swift.
Please,execute the command protoc --version
from protobuf-swift.
Too late, I'm already using https://github.com/mingchen/protobuf-ios :(
from protobuf-swift.
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.
Try this:
brew update && brew upgrade
brew install protobuf-swift
from protobuf-swift.
Can it support objective c?
from protobuf-swift.
Unfortunately, protobuf-swift not support objective-c.
from protobuf-swift.
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.
I think, your problem in old version Google Protobuf. Please, remove and install protobuf from homebrew.
from protobuf-swift.
Thanks a lot ! Now I have it installed!
from protobuf-swift.
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)
- Error in Xcode10 HOT 1
- Build fails with protobuf 3.6.0 HOT 2
- If a number is 0 this property will missing HOT 1
- XCode 10/swift 4.2 compilation errors HOT 3
- Build error on Xcode beta 5 HOT 2
- convert array ro json
- UnsafeRawPointer(&buffer+bufferPos) Ambiguous use of 'init' HOT 4
- configuare.ac
- new function to `delimitedData`
- Build time error HOT 1
- protobuf test program failed to link
- Message Field extensions
- protobuf2.6,swift 3.0 ,version Number
- Question : Codable
- [Question] Use RawValue enum when formatting to JSON
- protocol buffer build.sh error and show “protobuf test program failed to link” HOT 4
- Install failed
- Why the GeneratedMessageProtocol tip error
- Xcode 12.0 BETA 4 HOT 5
- Xcode12 build failure - Generic parameter 'Element' could not be inferred HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-swift.