Skip to content

fix(ios): import CoreAudio in AudioTap on Mac Catalyst - #91

Merged
lovegaoshi merged 1 commit into
lovegaoshi:APMfrom
alessandro-zanni:fix/mac-catalyst-audiotap
Sep 19, 2026
Merged

lovegaoshi merged 1 commit into
lovegaoshi:APMfrom
alessandro-zanni:fix/mac-catalyst-audiotap

Conversation

@alessandro-zanni

Copy link
Copy Markdown

Building an app that uses this branch as a Mac Catalyst app fails in SwiftAudioEx:

AudioTap.swift:38:52: error: cannot find type 'UnsafeMutableAudioBufferListPointer' in scope
WaveformAudioTap.swift:73:26: error: method does not override any method from its superclass

UnsafeMutableAudioBufferListPointer is defined in the CoreAudio Swift overlay. AVFoundation re-exports it on iOS but not on Mac Catalyst. This adds a #if targetEnvironment(macCatalyst)-guarded import CoreAudio, so iOS/tvOS builds are unchanged. The second error is a consequence of the first.

Found while building Streamyfin (which depends on this branch) for Mac Catalyst. With this change the pod compiles and links (Xcode 27, platform=macOS,variant=Mac Catalyst).

🤖 Generated with Claude Code

UnsafeMutableAudioBufferListPointer lives in the CoreAudio Swift overlay.
AVFoundation re-exports it on iOS but not on Mac Catalyst, so AudioTap.swift
(and WaveformAudioTap.swift, which overrides it) failed to compile there.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@lovegaoshi
lovegaoshi merged commit d2baf9a into lovegaoshi:APM Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants