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

SWIFT_VERSION unassigned in installation? #5

Open
schmidtwmark opened this issue May 30, 2019 · 1 comment
Open

SWIFT_VERSION unassigned in installation? #5

schmidtwmark opened this issue May 30, 2019 · 1 comment

Comments

@schmidtwmark
Copy link

schmidtwmark commented May 30, 2019

After adding the dependency to my pubspec.yaml and running flutter packages get, I try to run my app and I get this fun error:

 Downloading dependencies

    -> Installing Flutter (1.0.0)

    -> Installing qr_utils (0.1.4)

    -> Installing shared_preferences (0.0.1)
      - Running pre install hooks
    [!] Unable to determine Swift version for the following pods:

    - `qr_utils` 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.

    /usr/local/Cellar/cocoapods/1.7.0/libexec/gems/cocoapods-1.7.0/lib/cocoapods/installer/xcode/target_validator.rb:122:
    in `verify_swift_pods_swift_version'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/gems/cocoapods-1.7.0/lib/cocoapods/installer/xcode/target_validator.rb:37:i
    n `validate!'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:578:in `validate_targets'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:158:in `install!'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/gems/cocoapods-1.7.0/lib/cocoapods/command/install.rb:51:in `run'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/gems/cocoapods-1.7.0/lib/cocoapods/command.rb:52:in `run'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/gems/cocoapods-1.7.0/bin/pod:55:in `<top (required)>'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/bin/pod:22:in `load'
    /usr/local/Cellar/cocoapods/1.7.0/libexec/bin/pod:22:in `<main>'

Error output from CocoaPods:
↳

    [!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified.
    Please specify a platform for this target in your Podfile. See
    `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install
Error launching application on iPhone Xʀ.

I've searched around and tried some things out so I figured I'd make an issue and see if anyone knows how to fix. I can get the "specifying target version" error to go away by uncommenting a line in the podfile, but I can't get past the SWIFT_VERSION error.

@rgbinnovation
Copy link

Open your iOS project in Xcode, add a single Swift file, name it whatever, and Swift will be added to the project. You can now set SWIFT_VERSION. But, the plugin won't run. Depreciated code.

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

2 participants