fluttercommunity / flutter_contacts

Contacts Service - A Flutter plugin to retrieve and manage contacts on Android and iOS devices. Maintainer: @lukasgit
https://pub.dev/packages/contacts_service
MIT License
153 stars 69 forks source link

build failed - SWIFT_VERSION not supported #28

Closed user883311 closed 6 years ago

user883311 commented 6 years ago

I have created a basic Flutter app using the CLI Flutter tool. Starting with the basic demo app, I only added an import of the contacts_service package.

When running flutter run or flutter build, I get the following message in the terminal:

fullnames-MacBook-Air:testapp accountname$ flutter run
Launching lib/main.dart on iPhone 6 Plus in debug mode...
Running pod install...                                       1.8s
Starting Xcode build...
Xcode build done.                                            1.5s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET contacts_service OF PROJECT Pods WITH CONFIGURATION Debug ===
    The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.
Could not build the application for the simulator.
Error launching application on iPhone 6 Plus.

I am a newbie, and not sure if this is a problem with the Flutter contacts package or my own mistake?

Any suggestion would be very appreciated! -- thanks

user883311 commented 6 years ago

My apologies. This issue had previously been raised and solved. mavimo's solution worked for me.