kylef / URITemplate.swift

Swift implementation of URI Template (RFC6570)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift 5 compatibility

kudzaiTnexus opened this issue · comments

Projects that make use of this pod aren't able to upgrade to swift 5 because URITemplate isn't swift 5 compatible.

Please guys do you need help to achieve this ? (a PR seems to be open with a swift 5 compatible code)

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.