RazzleDazzle icon indicating copy to clipboard operation
RazzleDazzle copied to clipboard

Support for Swift 5.0 carthage update

Open vijay2pvk opened this issue 5 years ago • 7 comments

I am getting the following error after i upgrade to Swift 5.0 (XCode 10.2)

SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'RazzleDazzle')

vijay2pvk avatar Apr 03 '19 08:04 vijay2pvk

Hi @vijay2pvk

You can make it work by adding the following lines to the bottom of your Podfile:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'RazzleDazzle'
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
        end
    end
end

filipealva avatar Apr 23 '19 05:04 filipealva

Thanks. But I am using Carthage. Can you please post the above code for Carthage

vijay2pvk avatar Apr 23 '19 06:04 vijay2pvk

ah, sorry, I didn't notice. I'm actually not aware of a carthage workaround like this

filipealva avatar Apr 27 '19 20:04 filipealva

Just did a pull request for this @vijay2pvk . If you want, comment on it so it can be approved faster. https://github.com/IFTTT/RazzleDazzle/pull/65

brunomunizaf avatar May 21 '19 17:05 brunomunizaf

Any updates for Carthage Swift 5.0 upgrade?

vijay2pvk avatar Jun 04 '19 05:06 vijay2pvk

@vijay2pvk I add support for Swift 5+, Xcode 11. You can install with Carthage or Swift Package Manager.

#71

eduardo22i avatar Jan 28 '20 15:01 eduardo22i

@eduardo22i Thank you. I will look into it.

vijay2pvk avatar Jan 29 '20 06:01 vijay2pvk