Skip to content

Commit

Permalink
Fix compilation on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Nov 10, 2024
1 parent dbb560b commit ecf84d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,9 @@ jobs:
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziBluetooth-Package
destination: 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)'
destination: 'platform=watchOS Simulator,name=Apple Watch Series 10 (46mm)'
resultBundle: SpeziBluetooth-watchOS.xcresult
artifactname: SpeziBluetooth-watchOS.xcresult
buildandtest_tvos:
name: Build and Test Swift Package tvOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziBluetooth-Package
destination: 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)'
resultBundle: SpeziBluetooth-tvOS.xcresult
artifactname: SpeziBluetooth-tvOS.xcresult
ios:
name: Build and Test iOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
Expand Down Expand Up @@ -78,6 +69,6 @@ jobs:
needs: [package_ios, buildandtest_visionos, buildandtest_watchos, buildandtest_tvos, ios, macos]
uses: StanfordSpezi/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: SpeziBluetooth-iOS.xcresult SpeziBluetooth-visionOS.xcresult SpeziBluetooth-watchOS.xcresult SpeziBluetooth-tvOS.xcresult TestApp-iOS.xcresult TestApp-macOS.xcresult
coveragereports: SpeziBluetooth-iOS.xcresult SpeziBluetooth-visionOS.xcresult SpeziBluetooth-watchOS.xcresult TestApp-iOS.xcresult TestApp-macOS.xcresult
secrets:
token: ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ extension AccessorySetupKit.AccessoryEvent: CustomStringConvertible, CustomDebug
@available(macCatalyst, unavailable)
extension AccessorySetupKit {
/// A supported protocol of the accessory setup kit.
public struct SupportedProtocol {
public struct SupportedProtocol: RawRepresentable, Hashable, Sendable {
/// The raw value identifier.
public let rawValue: String

Expand All @@ -393,11 +393,6 @@ extension AccessorySetupKit {
}
}


@available(iOS 18.0, *)
@available(macCatalyst, unavailable)
extension AccessorySetupKit.SupportedProtocol: Hashable, Sendable, RawRepresentable {}

@available(iOS 18.0, *)
@available(macCatalyst, unavailable)
extension AccessorySetupKit.SupportedProtocol {
Expand Down

0 comments on commit ecf84d3

Please sign in to comment.