tidwall / SwiftWebSocket

Fast Websockets in Swift for iOS and OSX
MIT License
1.53k stars 246 forks source link

Update podspec to allow static library. #111

Open bridger opened 6 years ago

bridger commented 6 years ago

Version 1.4.0 of Cocoapods allows a pod to be used as a static library, even in a Swift app. It requires the library's podspec to contain s.static_framework = true.

This little change works in my project.

I believe this will help apps launch faster. Here's a blog post that explains why too many dynamic frameworks slows down launch: https://blog.automatic.com/how-we-cut-our-ios-apps-launch-time-in-half-with-this-one-cool-trick-7aca2011e2ea

smhk commented 6 years ago

purely FWIW Josh, maybe soon you should consider dumping cocoapods support.

We've noticed more and more teams have given up and just use Carthage, and once swift package manager arrives I guess pods will be pretty dead.

your library is way too good for it :)