ortuman / SwiftForms

A small and lightweight library written in Swift that allows you to easily create forms.
MIT License
1.33k stars 209 forks source link

Use Legacy Swift Language Version #139

Closed jorgeefrazaocosta closed 8 years ago

jorgeefrazaocosta commented 8 years ago

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

jorgeefrazaocosta commented 8 years ago

I also have forced to get the 1.7 version using cocoapods and I get the following error message:

[!] Unable to satisfy the following requirements:

None of your spec sources contain a spec satisfying the dependency: SwiftForms (= 1.7).

You have either:

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.

hslightnin commented 8 years ago

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '3.0' end end end

That at the end of the pod file fixed the error for multiple pods

ortuman commented 8 years ago

I recently add Swift3 pod compatibility. Should work now. Thank you!