LocalData/Documentation/build-docc.sh
Matt Bruce 0118403b11 Update Documentation.docc + docs
Summary:
- Sources: Documentation.docc
- Docs: build-docc

Stats:
- 4 files changed, 19 insertions(+), 8 deletions(-)
2026-01-18 14:53:31 -06:00

19 lines
518 B
Bash

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
xcodebuild docbuild \
-workspace .swiftpm/xcode/package.xcworkspace \
-scheme LocalData \
-destination 'generic/platform=iOS'
ARCHIVE_PATH="$(find "${HOME}/Library/Developer/Xcode/DerivedData" -type d -name 'LocalData.doccarchive' 2>/dev/null | sort | tail -n 1)"
if [[ -n "${ARCHIVE_PATH}" ]]; then
echo "DocC archive: ${ARCHIVE_PATH}"
else
echo "DocC archive not found in DerivedData."
fi