val-bubbleflat/laravel-echo-ios

Compiler errors in XCode

Closed this issue · 2 comments

I'm unable to compile this in my project, I'm getting the following errors:

Incorrect argument labels in call (have 'socketURL:config:', expected 'manager:nsp:')
(SocketIOConnector.swift:connect() line 54)

Cannot force unwrap value of non-optional type 'String'
(SocketIOConnector.swift:socketId() line 148)

I was able to get around the issue by adding this to my Podfile:

pod 'Socket.IO-Client-Swift', '12.1.3'

The normal install was installing version 13.2.1 which must have had breaking changes. Not familiar enough with cocoapods to know how to modify the Podfile to prevent version 13.x from being installed, or I'd submit a pull request.

I've submitted a pull request to bring this up to use Socket.IO-Client-Swift version 13 as well as Swift 5