Skip to content

Commit

Permalink
Merge pull request #141 from simorgh3196/support-xcode16-rc
Browse files Browse the repository at this point in the history
Fix build errors in Xcode16-RC
  • Loading branch information
giginet authored Sep 12, 2024
2 parents c044248 + c062eeb commit 36ea7c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
17 changes: 2 additions & 15 deletions Sources/scipio/Arguments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ extension URL: @retroactive ExpressibleByArgument {
}
}

extension BuildConfiguration: @retroactive ExpressibleByArgument {
public init?(argument: String) {
switch argument.lowercased() {
case "debug":
self = .debug
case "release":
self = .release
default:
return nil
}
}
}

#else

extension URL: ExpressibleByArgument {
Expand All @@ -31,6 +18,8 @@ extension URL: ExpressibleByArgument {
}
}

#endif

extension BuildConfiguration: ExpressibleByArgument {
public init?(argument: String) {
switch argument.lowercased() {
Expand All @@ -43,5 +32,3 @@ extension BuildConfiguration: ExpressibleByArgument {
}
}
}

#endif
8 changes: 0 additions & 8 deletions Sources/scipio/CreateCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,4 @@ extension Scipio {

private let availablePlatforms: Set<SDK> = [.iOS, .macOS, .tvOS, .watchOS]

#if compiler(>=6.0)

extension Runner.Options.Platform: @retroactive ExpressibleByArgument { }

#else

extension Runner.Options.Platform: ExpressibleByArgument { }

#endif
8 changes: 0 additions & 8 deletions Sources/scipio/Options.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,4 @@ struct BuildOptionGroup: ParsableArguments {
var overwrite: Bool = false
}

#if compiler(>=6.0)

extension FrameworkType: @retroactive ExpressibleByArgument { }

#else

extension FrameworkType: ExpressibleByArgument { }

#endif

0 comments on commit 36ea7c8

Please sign in to comment.