Closed civocr closed 8 years ago
Does it only happen if you compile the library with optimizations? If so see https://github.com/daltoniam/Starscream/issues/77
Optimisations for Debug are set to None [-O0]
I tried adding SWIFT_OPTIMIZATION_LEVEL = "-Onone" to my build settings but still crashes when a big dataset is returned over the socket
How did you install the library? It could be the library is already compiled with optimizations
cocopods
platform :ios, '8.3' use_frameworks!
pod 'Socket.IO-Client-Swift', '~> 4.1.2'
I really have no idea if CocoaPods would compile the library with optimizations separately from your build settings. The only way to test would be to manually add the Swift files and compile them like that.
sorry this was my mistake. I was trying to set my project to swift optimisation none. I changed the socket pod project to none and it works
Hi,
I've just swapped out my old socket.io implementation to use the swift lib in an ObjC project.
On simulator and iPod the implementation works fine but as soon as I run it on iPhone 5 (iOS 9.1) it crashes on a big dataset being returned from the server.