Rightpoint / Anchorage

A collection of operators and utilities that simplify iOS layout code.
MIT License
627 stars 46 forks source link

Fix definition of Swift version #67

Closed armcknight closed 5 years ago

armcknight commented 5 years ago

Currently, to get this working in certain setups I must add a post_install hook in my podfile setting SWIFT_VERSION, when using cocoapods 1.5.3:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            if target.name == 'Anchorage' then
                config.build_settings['SWIFT_VERSION'] = '4.2'
            end
        end
    end
end
armcknight commented 5 years ago

...unless that .swift-version file is used for other purposes I'm not seeing, of course.

armcknight commented 5 years ago

Closing this because now it seems to work ¯_(ツ)_/¯