triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

iOS build fails with Apps/MyApp/platforms/ios/Pods/Starscream/Sources/Starscream/WebSocket.swift:24:8: error: no such module 'CommonCrypto' #72

Closed ggarabedian closed 5 years ago

ggarabedian commented 6 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

To reproduce the issue you just need to create a new app and add the nativescript-socketio plugin. Also, ensure that the pods on your system are updated to their latest version (pod repo update command).

The issue seems to be related to version 3.0.6 of the Starscream library, which is a dependency of a dependency (socket.io-client-swift) of the nativescript-socketio plugin. There is an issue opened in the Starscream repository about the same problem. It looks like 3.0.6 introduces support for Xcode 10, which is already available, but it would be great to have a stable version of the nativescript-socketio plugin for Xcode 9.x users as well.

nginx17 commented 6 years ago

@ggarabedian try add pod 'Starscream', '<= 3.0.5' in Podfile

nginx17 commented 6 years ago

@triniwiz if I use the starscream 3.0.5, the "common crypto" problem is solved but I find a new problem that can't be solved yet: error: cannot use instance member {'socket' & 'nsp',} run before 'self' property initializers is available

This error is sourced from SocketIOclient.swift