A small macOS SwiftUI app for Xcode that downloads audio or MP4 video from a YouTube URL.
This version bundles the required external tools within the project:
yt-dlpffmpegffprobe
- macOS 14+
- Xcode 15+
- Intel Mac
- Open the project directory in Terminal.
- Run
./Scripts/install-intel-tools.sh. - Open
YouTubeAudioDownloader.xcodeprojin Xcode. - Select the
YouTubeAudioDownloaderscheme. - Select
My Macas the run destination in the top toolbar, rather than an iPhone or iPad simulator. - Click Run.
- Paste a YouTube URL, choose a format, and click the download audio or download video button. The app's interface is in Bulgarian.
Files are saved to ~/Music/YouTube Downloads by default.
Run the following in Terminal:
./Scripts/build-release.shThe resulting .app bundle will be located at:
build/Build/Products/Release/YouTubeAudioDownloader.app
If Xcode previously built an older version without Tools/lib, clear the project's DerivedData or use the script above, which copies and signs the tools on every build.
The tools are located in:
Sources/YouTubeAudioDownloader/Tools
This bundled version targets Intel macOS (x86_64). The directory initially contains a universal yt-dlp binary and placeholder ffmpeg/ffprobe scripts; ./Scripts/install-intel-tools.sh downloads the correct Intel binaries.
The Intel ffmpeg build must include libmp3lame for MP3 mode to work.
MP4 mode prefers H.264 (avc1) video and M4A/AAC audio for QuickTime compatibility. VLC can also play MP4 files containing VP9/AV1 video, but QuickTime often plays only the audio in those files.
Use the app only for content you have permission to download, such as your own content, royalty-free material, or videos authorized for offline use.
If you plan to distribute the app beyond personal use, review THIRD_PARTY_NOTICES.md, as the FFmpeg build has important licensing requirements.