pinkfish / flutter_places_dialog

Google places picker plugin for flutter. Opens up the google places picker on ios and android returning the chosen place back to the flutter app.
Other
44 stars 10 forks source link

Unable to build for XCode 9.0 #4

Closed jarias14 closed 6 years ago

jarias14 commented 6 years ago

Hello All, first of, THANK YOU so much for your hard work on this package. I am a newby to any kind of frontend development and am amazed as to how fast I can get stuff working with packages, specially this one!

I am using XCode 9 because that is what Flutter recommended. At this time, I am only running the sample project from flutter and your package. Nothing fancy. It works great for Android, but when I try to compile for iOS to see it in the simulator, I get the following message:

Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET flutter_places_dialog 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 7.

Does the library need to be eventually upgraded to XCode 9, or would this be something misconfigured on my dev env?

jarias14 commented 6 years ago

Sorry for the inconvenience of this issue. I downloaded your example app and compared it against my pre-existing app. The difference is that this plugin requires Swift support (my project was OjectiveC). In case anyone experiences the same issue in the future, see this link for help creating a project with Swift support - https://stackoverflow.com/questions/49069957/flutter-create-a-flutter-project-with-swift