Skip to content

Instantly share code, notes, and snippets.

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@YimoPower
YimoPower / gist:73b9afc44075aaaa97cfc1d5df781ab0
Last active March 27, 2023 09:52
A Tamperproof, Swift-Only Approach:

A Tamperproof, Swift-Only Approach:

  1. Add a new Run Script build phase to your app and MAKE SURE it is set to run before the Compile Sources phase.
  2. Add this as the code in that script:
#!/bin/bash

timestamp=$(date +%s)
echo "import Foundation;let appBuildDate: Date = Date(timeIntervalSince1970: $timestamp)" > ${PROJECT_DIR}/Path/To/Some/BuildTimestamp.swift