SwiftR
SwiftR copied to clipboard
Xcode 10 can't run in swift 4
Xcode 10 can't run in swift 4
Have anybody found a working signalr (not core) client for swift 5?
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
@dkornev ^
@buffsldr Thanks!
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!