Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 10 can't run in swift 4 #128

Open
zhangli4659507 opened this issue Apr 17, 2019 · 5 comments
Open

Xcode 10 can't run in swift 4 #128

zhangli4659507 opened this issue Apr 17, 2019 · 5 comments

Comments

@zhangli4659507
Copy link

Xcode 10 can't run in swift 4

@dkornev
Copy link

dkornev commented Apr 22, 2019

Have anybody found a working signalr (not core) client for swift 5?

@buffsldr
Copy link

buffsldr commented May 7, 2019

I am using it as a pod so I do this, which works in Xcode 10.2.1.

swift4_targets = ['foo4', 'SwiftR']
swift4_2_targets = ['foo4_2']

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if swift4_targets.include? target.name
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
            else
            if swift4_2_targets.include? target.name
                target.build_configurations.each do |config|
                    config.build_settings['SWIFT_VERSION'] = '4.2'
                end
                
                else
                target.build_configurations.each do |config|
                    config.build_settings['SWIFT_VERSION'] = '5.0'
                end
            end
        end
        
    end
end

@buffsldr
Copy link

buffsldr commented May 7, 2019

@dkornev ^

@dkornev
Copy link

dkornev commented May 7, 2019

@buffsldr Thanks!

@iDevo
Copy link

iDevo commented May 9, 2019

Hi @buffsldr, I assume you implemented this in your Podfile right? Can you share an example of the entire Podfile, unless I am unsure where to place it exactly? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants