willpowell8 / LocalizationKit_iOS

Realtime Dynamic localization translation delivery system for iOS and Mac OSX in Swift. Create and update texts from localization.com without needing to recompile or redeploy. Cocapod for iOS devices (iPad, iPhone, iPod Touch and Mac)
https://www.localizationkit.com/app/
MIT License
1.23k stars 79 forks source link

Socket.IO-Client-Swift Build Error : Type of expression is ambiguous without more context #27

Closed zxl777 closed 6 years ago

zxl777 commented 6 years ago

Swift4 ,XCODE 9

zxl777 commented 6 years ago

Fixed it. insert the lines bottom into podfile

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'LocalizationKit' || target.name == 'Socket.IO-Client-Swift'
            print "Changing #{target.name} swift version to 3.2\n"
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.2'
            end
        end
    end
end
willpowell8 commented 6 years ago

@zxl777 thank you for this. I will add it. I am in the process of upgrading to Swift 4.

willpowell8 commented 6 years ago

I have fixed the version of 3.0.12 as it wasnt setting the swift version to 3.2

Also released Swift 4 version so should fix the issue