Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working in ios #86

Open
jannomeister opened this issue Aug 2, 2019 · 10 comments
Open

not working in ios #86

jannomeister opened this issue Aug 2, 2019 · 10 comments

Comments

@jannomeister
Copy link

jannomeister commented Aug 2, 2019

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

@jannomeister
Copy link
Author

@triniwiz any workaround?

@triniwiz
Copy link
Owner

triniwiz commented Aug 2, 2019

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

@jannomeister
Copy link
Author

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

@jannomeister
Copy link
Author

my pod version is 1.7.5

@jannomeister
Copy link
Author

@triniwiz Also my platform version is 6.*

@triniwiz
Copy link
Owner

triniwiz commented Aug 2, 2019

Yes a clean build should be fine 👍

@jannomeister
Copy link
Author

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

@jannomeister
Copy link
Author

the version of my xcode is 10.1

@jn-bot
Copy link

jn-bot commented Aug 5, 2019

@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
Copy link

Delivrator commented Aug 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants