Repository Public
1#!/usr/bin/env bash2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : ORIX Cosmos8# File : Scripts/xb.sh9# Description : Runs xcodebuild for the app scheme (derived data in10# build/dd) and prints only errors, warnings and the result11# line.12# Module : Scripts13# Repository : https://git.spboucher.ai/orix-cosmos14# Project Website : https://www.orixlab.dev15# Created : 2026-11-2416# Last Modified : 2026-11-2417#18# Author : Simon-Pierre Boucher19# Position : Professor of Finance20# Institution : Université du Québec en Outaouais (UQO)21# Organization : SP Boucher22# Website : https://spboucher.ai23# Git : https://git.spboucher.ai24#25# Preferred Contact: support@spboucher.ai26# Technical Contact: dev@spboucher.ai27# Security/Admin : admin@spboucher.ai28#29# Copyright (c) 202630# Simon-Pierre Boucher31# All rights reserved where applicable. This file is governed by the32# applicable project license, copyright notices and relevant law.33# Existing third-party rights and notices remain unaffected.34#35# License : None specified (no license file in this repository)36#37# Do not embed credentials, private keys, access tokens,38# certificates or confidential personal information.39#40# =============================================================================41# END OF SP BOUCHER SOURCE HEADER42# =============================================================================4344set -uo pipefail45cd "$(dirname "$0")/.."46CONFIG="${1:-Debug}"; shift || true47xcodebuild -project ORIXCosmos.xcodeproj -scheme ORIXCosmos -configuration "$CONFIG" -derivedDataPath build/dd "${@:-build}" 2>&1 \48 | grep -E "^/.*(error|warning):|error:|\*\* " | grep -v "macro expansion" | sed "s|$PWD/||" | sort -u | head -6049