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

Cant build ios app - SWIFT_VERSION issue #14

Closed
k00na opened this issue Nov 6, 2019 · 7 comments
Closed

Cant build ios app - SWIFT_VERSION issue #14

k00na opened this issue Nov 6, 2019 · 7 comments
Labels
good first issue Good for newcomers

Comments

@k00na
Copy link

k00na commented Nov 6, 2019

Hello!

Everything works on Android but on iOS I cant build the project. There's an issue with the swift version, this is the output I get:

      - Running pre install hooks
    [!] Unable to determine Swift version for the following pods:

    - `flutter_sms` does not specify a Swift version and none of the targets (`Runner`) integrating it have the
    `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the
    targets that integrate this pod.

    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/xcode/target_validator.rb:122:in
    `verify_swift_pods_swift_version'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/xcode/target_validator.rb:37:in `validate!'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:578:in `validate_targets'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:158:in `install!'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/command/install.rb:51:in `run'
    /Library/Ruby/Gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:22:in `load'
    /usr/local/bin/pod:22:in `<main>'

I found a potential answer here, followed the steps but I still cant build the ios app because of this plugin. Any suggestions?

@faiqmustaqeem
Copy link

did you find any solution?

@faiqmustaqeem
Copy link

issue solved by following these instructions.
esysberlin/esys-flutter-share#24 (comment)

@k00na
Copy link
Author

k00na commented Dec 23, 2019

@faiqmustaqeem as I've mentioned, I've followed the exact same steps in that comment, but it didnt work for me.

@rodydavis
Copy link
Member

Is this still an issue? Try recreating your flutter project on the dev or master channel

@rodydavis rodydavis added the good first issue Good for newcomers label Feb 4, 2020
@mrwwalmsley
Copy link

Any updates here? What SWIFT_VERSION should I be specifying in the Podfile?

@SardorbekR
Copy link

@rodydavis
Copy link
Member

fixed on version 2.3.1 reopen if it is still an issue

@rodydavis rodydavis pinned this issue Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants