Skip to content

Commit

Permalink
Rename product to StructuredWebSocketClient
Browse files Browse the repository at this point in the history
This works around a problem of having a type and module share the same name. Xcode 14.3 doesn't like it in textual swiftinterface files, and in xcodebuild the interface verification would fail.

See swiftlang/swift#64669
  • Loading branch information
tkrajacic committed May 25, 2023
1 parent f20ace8 commit 143531d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ let package = Package(
platforms: [.iOS(.v15), .macOS(.v12), .watchOS(.v8), .tvOS(.v15)],
products: [
.library(
name: "WebSocketClient",
targets: ["WebSocketClient"]),
name: "StructuredWebSocketClient",
targets: ["StructuredWebSocketClient"]),
.library(
name: "WebSocketClientTestSupport",
targets: ["WebSocketClientTestSupport"]),
name: "StructuredWebSocketClientTestSupport",
targets: ["StructuredWebSocketClientTestSupport"]),
],
dependencies: [
// Swift logging API
.package(url: "https://github.com/apple/swift-log.git", .upToNextMajor(from: "1.5.2")),
],
targets: [
.target(
name: "WebSocketClient",
name: "StructuredWebSocketClient",
dependencies: [.product(name: "Logging", package: "swift-log")]),
.target(
name: "WebSocketClientTestSupport",
dependencies: [.target(name: "WebSocketClient")]),
name: "StructuredWebSocketClientTestSupport",
dependencies: [.target(name: "StructuredWebSocketClient")]),
.testTarget(
name: "WebSocketClientTests",
name: "StructuredWebSocketClientTests",
dependencies: [
.target(name: "WebSocketClient"),
.target(name: "WebSocketClientTestSupport"),
.target(name: "StructuredWebSocketClient"),
.target(name: "StructuredWebSocketClientTestSupport"),
]),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===//

import Foundation
import WebSocketClient
import StructuredWebSocketClient

public final class TestMessageTransport: MessageTransport {
public var transportDelegate: MessageTransportDelegate?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===//

import XCTest
@testable import WebSocketClient
@testable import StructuredWebSocketClient

final class WebSocketClientTests: XCTestCase {

Expand Down

0 comments on commit 143531d

Please sign in to comment.