if and switch expressions Swift
KHPaytalab opened this issue · 1 comments
KHPaytalab commented
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
Swift 5.9 if and switch expressions cause fastlane Error while build_app
Command executed
build_app(workspace: "passorder.xcworkspace",
scheme: "passorder_develop",
configuration: "Debug_develop",
export_method: "ad-hoc")
Complete output when running fastlane, including the stack trace and command used
❌ /Users/paytalab/passorder/local/passorder-ios/passorder/Modules/CommonUI/CommonUI/UITextField/NewRoundBorderTextField.swift:111:47: expected expression in assignmentself?.layer.borderColor = if isError { ^
Environment
| Key | Value | | --------------------------- | ---------------------------------------------------------- | | OS | 14.1 | | Ruby | 3.3.0 | | Bundler? | false | | Git | git version 2.39.2 (Apple Git-143) | | Installation Source | /opt/homebrew/Cellar/fastlane/2.220.0/libexec/bin/fastlane | | Host | macOS 14.1 (23B74) | | Ruby Lib Dir | /opt/homebrew/Cellar/ruby/3.3.0/lib | | OpenSSL Version | OpenSSL 3.2.0 23 Nov 2023 | | Is contained | false | | Is homebrew | true | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 14.3 | | Swift Version | 5.8 |
KHPaytalab commented
I found my swift version was 5.8