

XCODE FOR MAC OS 10.15 CODE
For local execution an ad-hoc signature is sufficient, which Xcode will handle automatically ("Sign to Run Locally").īecause macOS stores application permissions (e.g., webcam access, microphone access, screen recording) based on code signatures, this has the side-effect of permissions not being applied to updated binaries (the underlying hashes will not match the entry in macOS' database). Starting with macOS 11, it is best practice to always codesign all binaries on macOS.
XCODE FOR MAC OS 10.15 ARCHIVE
Select "Distribute App" to start an export of the archive.Xcode will automatically open the "Organizer" window after successfully creating an archive.

Select "Archive" from the "Product" menu item (Xcode will build the project in "Release" configuration, as is canonical on macOS).To generate optimised and fully codesigned application bundles, use the archive and export functions provided by Xcode: Choose this scheme from within Xcode (or specify via the command line) and build the project.
XCODE FOR MAC OS 10.15 INSTALL
HINT: You can install the tool xcbeautify to make the xcodebuild output more readable - the suggested way to run the build command changes slightly in that case: set -o pipefail & 2>&1 | xcbeautifyĬMake creates an install scheme that will automatically install OBS into the Applications directory. Run xcodebuild -configuration -scheme obs-studio -parallelizeTargets -destination "generic/platform=macOS,name=Any Mac".Change into the generated build directory ( build_macos).Press + to build the project (or + to build and run it).Īlternatively the project can also be built on the command line:.Select the obs-studio scheme from the scheme browser at the top of the Xcode window.Open the Xcode project file in the generated build directory ( build_macos).Any other CMake variables can be provided as usual and can also override variables set by the preset if necessary.arm64e is not supported, as its not supported by macOS for anything but system frameworks.Available and supported architectures are x86_64 for Intel-Macs and arm64 for Apple Silicon-Macs.To choose a different architecture, provide it via an additional CMake flag: cmake -preset macos -DCMAKE_OSX_ARCHITECTURES=.This selects the local system architecture by default.Select the macos preset: cmake -preset macos macOS 13.0 (for Xcode versions after and including 14.3)Ĭlone the repository including submodules:Ĭheck available CMake presets: cmake -list-presets.macOS 12.0 (for Xcode versions up to and including 14.2).Build instructions for the legacy build system are retained in this document, albeit in a simplified form reflecting the suggested way macOS builds should be approached. NOTE: Since March 2023, obs-studio uses an updated build system on macOS that automated most steps required in old build systems.
