Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling for iOS #10

Open
vihanb opened this issue Jul 14, 2018 · 3 comments
Open

Compiling for iOS #10

vihanb opened this issue Jul 14, 2018 · 3 comments

Comments

@vihanb
Copy link

vihanb commented Jul 14, 2018

I was wanting to use this library in part to make an iOS app using SE chat. I see that there is libwebsockets and openssl that would need to be cross-compiled. I was wondering if you've already taken a stab at this, otherwise I'll try to make a PR later this week

@NobodyNada
Copy link
Member

Getting it to run on iOS should be pretty easy if you switch the websocket client. SwiftChatSE used to use https://github.com/tidwall/SwiftWebSocket, which is a really lightweight websocket client (it only works on Apple platforms, so I swapped it out for libwebsockets, which works on Linux but adds OpenSSL as a dependency). This afternoon, I’ll take a shot at adding the above library back in, using conditional compilation directives to enable it only on Apple platforms. It shouldn’t take me more than an hour.

Once I’ve done that, you should be able to create a framework subtarget on your iOS app and drag and drop the SwiftChatSE source files right in.

(BTW, if the app’s on GH I might be able to find some time to help out).

@NobodyNada
Copy link
Member

Almost there. Unfortunately, reCAPTCHA has decided I'm suspicious and now I can no longer log into Stack Exchange. I can't test until the block goes away, so I'll try again in a bit.

@Bhargav-Rao
Copy link
Member

The real question is, are you suspicious?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants