triniwiz / nativescript-socketio

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

not working in ios #86

Open jannomeister opened 5 years ago

jannomeister commented 5 years ago

Error: error: SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0, 4.2. (in target 'Starscream')

jannomeister commented 5 years ago

@triniwiz any workaround?

triniwiz commented 5 years ago

@jannomeister try doing a clean build I updated the pod 😄

jannomeister commented 5 years ago

@triniwiz clean build like tns platform clean ios/android?

jannomeister commented 5 years ago

my pod version is 1.7.5

jannomeister commented 5 years ago

@triniwiz Also my platform version is 6.*

triniwiz commented 5 years ago

Yes a clean build should be fine 👍

jannomeister commented 5 years ago

@triniwiz still getting the error. This is a new generated angular project.

jannomeister commented 5 years ago

the version of my xcode is 10.1

jn-bot commented 5 years ago

@triniwiz i really love your plugin but after upgrading to NS v6 its not working anymore. I have the same problem with the one commenting above. I really need this plugin for the app im working on.

Delivrator commented 5 years ago

Workaround : in xcode, go on starscream target, build settings and change the swift version to 4.2

starscream-swift

EDIT : Easier solution : Create a file named "Podfile" in app/App_Resources/iOS if not existing already and add this to it :

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '4.2' end end end