Swift 5 compatibility
kudzaiTnexus opened this issue · comments
kudzaiTnexus commented
Projects that make use of this pod aren't able to upgrade to swift 5 because URITemplate isn't swift 5 compatible.
Jenea Vranceanu commented
+1
Romain BIARD commented
Please guys do you need help to achieve this ? (a PR seems to be open with a swift 5 compatible code)
Pedro Paulo Amorim commented
Please fix this, I cannot run my unit tests.
Edit: If you are not able to compile your project (or test) in Swift 5 due this problem, add this at the end of your podfile
:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name.include?('URITemplate')
target.build_configurations.each do |config|
if config.name.start_with?('Debug')
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
end
end
Remember that this forces it to compile the URITemplate
project on 4.0 for all targets.