pusher / NWWebSocket

A WebSocket client written in Swift, using the Network framework from Apple.
MIT License
123 stars 25 forks source link

Need help to fix iOS version issue | 'NWProtocolWebSocket' is only available in iOS 13.0 or newer #37

Closed kmrAX closed 1 year ago

kmrAX commented 1 year ago

Hi, I have added NWWebSocket using pod.

pod 'NWWebSocket', '~> 0.5.2'

After adding and updating the pod, Xcode is giving me this error

'NWProtocolWebSocket' is only available in iOS 13.0 or newer

image

But, my target iOS is 15.

image

Can you please let me know if I am missing something here?

benjamin-tang-pusher commented 1 year ago

Your project file's Info tab's iOS deployment target will also need to be 15, as well as the target:

Screenshot 2022-11-21 at 14 18 32

benjamin-tang-pusher commented 1 year ago

I'm going to close this issue, feel free to reopen if the above setting isn't the right one.

QuentinDela commented 1 year ago

Hello, I am having this issue also. I did change the iOS Deployment Target to 13.0 but I still get the error " 'NWConnection' is only available in iOS 12.0 or newer"