Create a Kitura app locally and compiles and builds successfully. But when attempting to deploy to heroku after a while, I get the following output:
/tmp/build_cbc1c98480abd8ace78731a677031c0a/.build/checkouts/Kitura.git--211144618449703330/Sources/Kitura/RouterRequest.swift:56:33: error: use of unresolved identifier 'RegularExpression'remote: let regex = try RegularExpression(pattern: pattern, options: [.caseInsensitive]) remote: ^~~~~~~~~~~~~~~~~ remote: Foundation.NSRegularExpression:1:12: note: did you mean 'NSRegularExpression'? remote: open class NSRegularExpression : Foundation.NSObject, NSCopying, NSCoding {
The version of swift used is 3.1 and I specified the same version when pushing to heroku via the .swift-version file.
This is the Package.swift used
Version of Kitura used is 1 major 7 minor
Trying other versions of swift e.g. 3.1.1 results in hanging - to the point that heroku cancels due to timeout. Any help will be much appreciated. Thanks