crossroadlabs / Regex

Regular expressions for swift
Apache License 2.0
332 stars 33 forks source link

Swift 4 - 'Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'?' #46

Closed ItsMeSandu closed 6 years ago

ItsMeSandu commented 6 years ago

Im using your lib with the version1.1.0`

I got this error message for the file Regex.swift.

The following is the affected line:

361: result.append(piece)

ItsMeSandu commented 6 years ago

i had the following snippet in my podfile which caused the error:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'
    end

    puts "#{target.name}"
  end
end