Skip to content

Instantly share code, notes, and snippets.

@k-thorat
k-thorat / input_output_list_for_changed_files.sh
Last active July 11, 2023 12:57
Xcode - Run Script - Create Input & Output file list of git-changed files to optimise build process.
#!/bin/sh
# Read more at:
# https://stackedheaps.com/2023/07/02/optimise-xcode-builds-with-input-output-file-lists
# Script Arguments:
# $1 = xcfilelist name without extension.
# Example: ChangedFiles
# $2 = Optional Output directory
# Path relative to $SRCROOT for saving xcfilelist.
@k-thorat
k-thorat / input_output_list_for_file_types.sh
Last active July 11, 2023 12:59
Xcode - Run Script - Create Input & Output file list of file-types to optimise build process.
#!/bin/sh
# Read more at:
# https://stackedheaps.com/2023/07/02/optimise-xcode-builds-with-input-output-file-lists
# Script Arguments:
# $1 = xcfilelist name without extension.
# Example: SwiftFiles
# $2 = Space separated list of file extensions (case sensitive).
# Examples: "swift json"
@k-thorat
k-thorat / restrict_build_settings_changes.sh
Last active July 4, 2023 16:23
Xcode - Restrict build setting changes.
#!/bin/sh
# https://stackedheaps.com/2023/06/10/restrict-changes-in-xcode-build-settings
# **********************************************************************************
# Verified on Xcode 12, 13 & 14
# Running Script
# Apple.xcodeproj