Building

macOS, then the app:

cmake --preset macos -DSNX_MOLTENVK=$HOME/moltenvk-macos
cmake --build --preset macos
cpack --config build/macos/CPackConfig.cmake -B out   # out/ScarletNX-macos-arm64.zip, ScarletNX.app in it

SNX_MOLTENVK is the release's MoltenVK-macos.tar, extracted (MoltenVK-ios.tar for iOS). CPack installs the app into its own folder, signs it ad hoc and zips it (-G DragNDrop makes a disk image instead). cmake --install build/macos --prefix out/ScarletNX.app/Contents makes the same app without the zip. The CI pins the release and its SHA-256 (.github/workflows/build.yml).

iOS, then the IPA:

cmake --preset ios -DSNX_MOLTENVK=$HOME/moltenvk-ios
cmake --build --preset ios
cpack --config build/ios/CPackConfig.cmake -B out     # out/ScarletNX-ios-arm64.ipa

The presets' CMAKE_OSX_DEPLOYMENT_TARGET are the oldest systems the apps run on: macOS 13.0 and iOS 16.0. FFmpeg, OpenSSL and the recompiler's runtime library are built outside CMake's compiles and get the SDK, architecture and oldest version from cmake/apple.cmake.


Made from docs/hosts/apple.md at 69237645142c. GPL-3.0-or-later.