-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build errors in Xcode16-RC #141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Could you fix the commented points?
extension BuildConfiguration: @retroactive ExpressibleByArgument { | ||
public init?(argument: String) { | ||
switch argument.lowercased() { | ||
case "debug": | ||
self = .debug | ||
case "release": | ||
self = .release | ||
default: | ||
return nil | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This extension was also required for Swift 5 & 6.
Please move L34 to the outside of the preprocessor block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BuildConfiguration
extension is already outside the preprocessor block.
If my perception is wrong, I would like to know!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. It's correct!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
These same changes are applied on #140, but we should merge this PR first.
I'll ask the author to rebase this PR.
extension BuildConfiguration: @retroactive ExpressibleByArgument { | ||
public init?(argument: String) { | ||
switch argument.lowercased() { | ||
case "debug": | ||
self = .debug | ||
case "release": | ||
self = .release | ||
default: | ||
return nil | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. It's correct!
I have fixed an error that occurs when building with Xcode 16 Release Candidate.
This change is also included in #140, but I wanted to use it immediately, so I created a small separate PR.
Changes
@retroactive
declarations