forked from bambulab/BambuStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Building from source macOS
BenJule edited this page May 31, 2026
·
2 revisions
| Component | Minimum | Recommended |
|---|---|---|
| macOS | 13 Ventura | 15 Sequoia |
| Xcode | 14 | 16 |
| RAM | 8 GB | 16 GB |
| Disk | 30 GB free | 50 GB free |
# Install Xcode Command Line Tools
xcode-select --install
# Install Homebrew (if not already installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install build tools
brew install cmake ninja git-lfs gettextgit clone https://github.com/BenJule/BambuStudio.git
cd BambuStudio
git lfs pull./BuildMac.sh -dBuilds all C++ dependencies into deps/build/destdir/. Takes ~60–90 min on first run, cached thereafter.
./BuildMac.sh -s./BuildMac.sh -pOutput: build/BambuStudio.app
Launch directly:
open build/BambuStudio.appCI produces a universal binary (arm64;x86_64) that runs natively on both architectures. To build locally for your native arch only (faster):
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DBBL_RELEASE_TO_PUBLIC=1 \
-DCMAKE_PREFIX_PATH="$(pwd)/deps/build/destdir/usr/local"
cmake --build build --target BambuStudio --parallel $(sysctl -n hw.logicalcpu)To build a universal binary locally:
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_PREFIX_PATH="$(pwd)/deps/build/destdir/usr/local"| Platform | Architecture | Workflow |
|---|---|---|
| macOS 15 Intel | x86_64 | ci-build-macos.yml |
| macOS 15 ARM Universal | arm64 + x86_64 | ci-build-macos.yml |
For local development, signing is not required. For distribution:
# Ad-hoc signing (local use only)
codesign --force --deep -s - build/BambuStudio.app
# Distribution signing (requires Apple Developer ID Certificate)
codesign --force --deep \
--sign "Developer ID Application: Your Name (TEAMID)" \
--options runtime \
build/BambuStudio.app
# Notarize for macOS Gatekeeper
xcrun notarytool submit BambuStudio.dmg \
--apple-id your@apple.id \
--team-id TEAMID \
--password APP_SPECIFIC_PASSWORD \
--waitxcode-select --install
sudo xcode-select -s /Applications/Xcode.app/Contents/Developerbrew reinstall openssl@3
export OPENSSL_ROOT_DIR="$(brew --prefix openssl@3)"codesign --force --deep -s - build/BambuStudio.app
xattr -cr build/BambuStudio.appThe binary was built for x86_64 only. Build a universal binary or build natively for arm64 using the CMake flags above.