AirAP 是一个完全原生的 AirPlay 服务器,由 Swift 编写,适用于 iOS。本质上,AirAP 允许你将 iPhone 作为 iTunes 或 Mac 上的 AirPlay 接收端,这意味着你可以用 iPhone 播放设备的声音。
什么是 AirAP?
你是否曾想过将 Mac、Apple TV 或其他 iOS 设备上的音频流传输到 iPhone?AirAP 通过实现一个完全原生运行于 iOS 的 AirPlay 服务器,让这一切成为可能。安装后,你的 iPhone 会在系统偏好设置的音频面板、Music.app 或任意支持 AirPlay 的应用中显示为可用的 AirPlay 目标。
这个概念刚开始看起来似乎有点反向——毕竟我们习惯于把 iPhone 的音频流到其它设备。但实际上,有很多场景你会希望反过来。比如,你深夜在 Mac 上工作,希望通过 iPhone 和耳机听音频,不打扰其他人(嗨 👋)。或者你是开发者,测试音频应用时需要快速切换输出设备。又或者你只是想重新利用那台老式有线音箱。
安装 AirAP
想要体验,只需打开这个 TestFlight 链接,安装 AirAP 并按提示操作。安装完成后,启动 AirAP 并确保你的 iPhone 和需要投送音频的设备在同一 Wi-Fi 网络下。你的 iPhone 会自动出现在 AirPlay 设备列表中,准备接收音频——如果没有显示,尝试重启应用。
编译
请确保你已安装 homebrew
brew install carthage
git clone https://github.com/neon443/AirAP
cd AirAP
carthage checkout
open AirAP.xcodeproj
After adding your Team ID in Project > AirAP > Signing and Capabilities, hit Command + R to build and run! thanks to
qasim/Airstream shairplay would not have been possible without these
© 2025 Nihaal Sharma. AirPlay, iPhone, iTunes, Mac, and Apple TV are trademarks of Apple Inc.
--- Tranlated By Open Ai Tx | Last indexed: 2026-03-11 ---