Giter VIP home page Giter VIP logo

Comments (8)

alexeyxo avatar alexeyxo commented on June 18, 2024

I have not updated the example, he does not work.

from protobuf-objc.

edokeh avatar edokeh commented on June 18, 2024

I met this problem in 1.9.8 too.

from protobuf-objc.

ddaddy avatar ddaddy commented on June 18, 2024

I'm getting file not found for ProtocolBuffers.h in my own project, but the example seems to see it fine.
Any idea why?

from protobuf-objc.

alexeyxo avatar alexeyxo commented on June 18, 2024

@ddaddy
Can you describe in detail how you installed library?
Or give me example project.

from protobuf-objc.

ddaddy avatar ddaddy commented on June 18, 2024

I've dragged the ProtocolBuffers.xcodeproj to my project, added it to both Target Dependencies and Link Binary With Libraries.

In my project, neither #import <ProtocolBuffers/ProtocolBuffers.h> or #import "ProtocolBuffers.h" find the file.

from protobuf-objc.

alexeyxo avatar alexeyxo commented on June 18, 2024

You should set up "Header Seartch Path" and "User Header Search Path" in "Build Settings".

from protobuf-objc.

maojj avatar maojj commented on June 18, 2024

I meet the same problem when I drag the proto.xcodeproj into my project( not by cocoapods).
Because ProtocolBuffers.h is not in the ProtocolBuffers folder, So even I add Header Search Path, I get the "'ProtocolBuffers/ProtocolBuffers.h' file not found " error.

My solution:

  1. Make a folder named ProtocolBuffers under /path/to/protobuf-objc/, and copy ProtocolBuffers.h to it.
  2. add /path/to/protobuf-objc/ to "Header Seartch Path" in "Build Settings".

from protobuf-objc.

ddaddy avatar ddaddy commented on June 18, 2024

Thanks guys. I added the header and user header search paths, anyone else looking, make sure to set them to recursive.

Then, for some reason I had to change any #import <ProtocolBuffers/ProtocolBuffers.h> to #import "ProtocolBuffers.h" and it now compiles.

Thanks

from protobuf-objc.

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.