Thank you for your response to the bug report. We’ve uploaded a follow-up project code and system diagnosis to FB16034376 for further review.
We developed a macOS bundle to enable a macCatalyst app to call macOS APIs. While most macOS API calls function correctly, including a successful reference case using NSAlert() from AppKit, the call to AudioUnitSetProperty fails.
STEPS TO REPRODUCE
Set the Run Destination to macCatalyst.
Run the program.
EXPECTED OUTPUT
Clicking the "AppKit Alert (WORKS)" button successfully invokes a macOS API (NSAlert).
Clicking the "Set Audio Device (FAILS)" button successfully sets the audio output device via AudioUnitSetProperty.
ACTUAL OUTPUT
Clicking the "AppKit Alert (WORKS)" button works as expected.
Clicking the "Set Audio Device (FAILS)" button results in an error message:
"Error setting output device: -10879", indicating a failure in calling the macOS API.
ADDITIONAL NOTES
System diagnosis was run on Feb 5th, 2025, 18:56pm. We first clicked "AppKit Alert (WORKS), then clicked Set Audio Device (FAILS).
Xcode Version 16.0 (16A242d)
Our company is looking to develop a UI that supports both macOS and iOS while maximizing code reuse. Could you advise on the best approach to achieve this moving forward?
We appreciate your guidance.