sidlatau / flutter_document_picker

Allows user pick a document. Picked document is copied to app temporary directory. Optionally allows pick document with specific extension only.
Apache License 2.0
41 stars 29 forks source link

Unsupported Swift Version #8

Closed DevX143 closed 6 years ago

DevX143 commented 6 years ago

Problem: The target "flutter_document_picker" contains source code developed with Swift 2.x. Xcode 9 does not support building or migrating to Swift 2.x targets.

Additional Information: BUILD FAILED Xcode's output: ↳ The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2. This setting can be set in the build settings editor. The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2. This setting can be set in the build settings editor. Could not build the precompiled application for the device.

Details ( where the problem exist):

sidlatau commented 6 years ago

It looks like an issue registered in flutter repo, when trying to add swift plugin to objective-c project. Check this comment for possible fix: https://github.com/flutter/flutter/issues/16049#issuecomment-382629492