GithubHelp home page GithubHelp logo

libPusherMac about libpusher HOT 14 CLOSED

pusher avatar pusher commented on July 24, 2024
libPusherMac

from libpusher.

Comments (14)

lukeredpath avatar lukeredpath commented on July 24, 2024

Hi Toby

It is still supported on OSX, I just need to do a bit more work on the packaging. I only got the automated build running the other day and I've only had a chance to look at iOS. In the coming days, I'll get this up and running again for OSX. Support for OSX is definitely not going away, in fact I want to improve it.

I'm actually heading into the Pusher offices again tomorrow and I'll see if I can spend some time then fixing this.

Thanks
Luke

from libpusher.

tobyspark avatar tobyspark commented on July 24, 2024

Great to hear that it is, and that you're working on it. Hope the work goes smooth, good luck.

from libpusher.

lukeredpath avatar lukeredpath commented on July 24, 2024

Toby, you'll now find a stable and nightly release of the OSX framework on the Downloads page. Please give it a try.

from libpusher.

tobyspark avatar tobyspark commented on July 24, 2024

That was quick!

'PTPusherEventPublisher.h' file not found in /Users/tobyz/Dropbox/spark-titler v3 source/libPusher.framework/Headers/PTPusher.h

...and yep, I can't see it in the Framework's header folder.

from libpusher.

lukeredpath avatar lukeredpath commented on July 24, 2024

Ah, missed one. I've updated the builds.

from libpusher.

tobyspark avatar tobyspark commented on July 24, 2024

Thanks. Builds without error or warning.

Buuut... on run, I get a dyld fatal error. Hopefully a quirk of my hacking around in the past day or so, but I have done the obvious clean etc.

from libpusher.

tobyspark avatar tobyspark commented on July 24, 2024

Same issue on a fresh XCode project that has the framework added to it and an instance of PTPusher as a property.

from libpusher.

lukeredpath avatar lukeredpath commented on July 24, 2024

Could you download the latest OSX nightly build, and try that. You'll need to add a Copy Files build phase, which I've outlined in this revised wiki page.

Let me know how you get on.

from libpusher.

tobyspark avatar tobyspark commented on July 24, 2024

Uh-oh - no fix and a regression? Hope this is just me.

The framework in the new download is missing the PTEventPublisher.h

When putting that back in, I still get the dyld fatal error. I also once saw a spurious Xcode 'file not found' or similar dialog. To recap, it still builds fine, and the framework is in the framework folder of the built product.

Looking at the console, might there be a hard-coded path or somesuch?

dyld: Library not loaded: /Library/Frameworks/libPusher.framework/Versions/A/libPusher
  Referenced from: /Users/foobar/Library/Developer/Xcode/DerivedData/test-hgmsvtuikodigrcauxtqlblrbgya/Build/Products/Debug/test.app/Contents/MacOS/test
  Reason: image not found

from libpusher.

tobyspark avatar tobyspark commented on July 24, 2024

Created a new, new Xcode project that just initialises an instance of PTPusher. It builds.

Runs OK:

[self setPusher:[PTPusher pusherWithKey:@"123" connectAutomatically:NO]];

Runs then crashes on [AsyncSocket doStreamOpen].

[self setPusher:[PTPusher pusherWithKey:@"123" connectAutomatically:NO]];
[pusher connect];

from libpusher.

lukeredpath avatar lukeredpath commented on July 24, 2024

Hi Toby,

Could you provide me with a detailed backtrace?

Thanks

from libpusher.

lukeredpath avatar lukeredpath commented on July 24, 2024

No need for the backtrace, I tracked down the error. ZTWebSocket was being compiled without ARC support when it actually needs it. I've updated the nightly and release builds for OSX. I've also added a basic example app to the project.

from libpusher.

tobyspark avatar tobyspark commented on July 24, 2024

Great, thanks. And yep, easily missed. Will check later.

On 5 Feb 2012, at 19:02, Luke Redpath wrote:

No need for the backtrace, I tracked down the error. ZTWebSocket was being compiled without ARC support when it actually needs it. I've updated the nightly and release builds for OSX. I've also added a basic example app to the project.


Reply to this email directly or view it on GitHub:
#20 (comment)

from libpusher.

tobyspark avatar tobyspark commented on July 24, 2024

I have pusher successfully integrated. Many thanks.

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.