GithubHelp home page GithubHelp logo

Comments (5)

lukeredpath avatar lukeredpath commented on July 4, 2024

Hi, I took at look at your example project. The headers have been added as a folder reference, so Xcode isn't able to find them. You could add the location on disk to the header search path but the easiest solution is to remove the folder reference, and just drag the headers into Xcode. This way Xcode will pick up all of the headers.

To debug your other problem I would need to see a detailed backtrace.

from libpusher.

mladjan avatar mladjan commented on July 4, 2024

Great! Now it compiles with import.
When I init new instance of client now I'm getting bad access exception.
This is new sample code: http://cl.ly/0h0N0b022d320q132l23

from libpusher.

mladjan avatar mladjan commented on July 4, 2024

Actually, it fails when I'm trying to connect, not at init.
PTPusher *client = [PTPusher pusherWithKey:@"790c38b770fdff2c1678" connectAutomatically:NO encrypted:YES];
[client connect];

It's crashing at: [SRWebSocket _pumpWriting]_block_invoke_0

without [client connect]; it doesn't crash.

from libpusher.

lukeredpath avatar lukeredpath commented on July 4, 2024

pusherWithKey:connectAutomatically:encrypted: returns an autoreleased object. If you don't retain it (either with an explicit retain call, or if you are using ARC by storing it in a __strong variable), then the object will autorelease while its connecting which is why you are seeing a crash.

from libpusher.

mladjan avatar mladjan commented on July 4, 2024

Yap, that was the problem. Thanks for help :)

from libpusher.

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.