vapor-community / sockets

🔌 Non-blocking TCP socket layer, with event-driven server and client.
MIT License
575 stars 54 forks source link

add several podspec for CocoaPods support #122

Closed codetalks-new closed 6 years ago

codetalks-new commented 7 years ago

it's make me feel sad that I can't use this library directly in my iOS App with swiftpm, so I have create several podspec files, make it's easy to use this lib in their CocoaPods project.

loganwright commented 7 years ago

@banxi1988 after we tag 2.0 we're going to go back and start releasing cocoapods for some of these libs, we'll be revisiting this soon, thanks for adding it!

softknife commented 7 years ago

any update?

softknife commented 7 years ago

@banxi1988 could you update your CocoaPods project of vapor-sockets , please? I'd like to use it

tanner0101 commented 6 years ago

I don't think this package would be usable on iOS even if you did get the Cocoapod working.

codetalks-new commented 6 years ago

@EricYellow Hi, as @tanner0101 pointed out. we should better not use this project in iOS See Also https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/NetworkingTopics/Articles/UsingSocketsandSocketStreams.html

Note: POSIX networking does not activate the cellular radio on iOS. For this reason, the POSIX networking API is generally discouraged in iOS.

finally , I copyed some code from this project into my project. that is ,I copyed the FoundationStream class and some needed dependency code.