Skip to content

Commit

Permalink
Build with Xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Aug 25, 2024
1 parent 79e976d commit 601a4f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app
run: sudo xcode-select -s /Applications/Xcode_16.1_beta.app

- name: Disable macro validation
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
cp Release/iOS.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app
run: sudo xcode-select -s /Applications/Xcode_16.1_beta.app

- name: Disable macro validation
run: |
Expand Down
6 changes: 5 additions & 1 deletion macOS/ScreenRecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ actor ScreenRecorder {
continuation.yield(sampleBuffer)
}
}

let frames: AsyncStream<CMSampleBuffer>
let continuation: AsyncStream<CMSampleBuffer>.Continuation

let (frames, continuation) = AsyncStream.makeStream(of: CMSampleBuffer.self, bufferingPolicy: .bufferingNewest(1))
let output: Output
let stream: SCStream

init(window: SCWindow) async throws {
(frames, continuation) = AsyncStream.makeStream(of: CMSampleBuffer.self, bufferingPolicy: .bufferingNewest(1))

let filter = SCContentFilter(desktopIndependentWindow: window)

let configuration = ScreenRecorder.streamConfiguration()
Expand Down

0 comments on commit 601a4f6

Please sign in to comment.