This guide explains the required environment variables for working with wrkstrm packages and tools. This guide is specifically for M class Macs.
-
Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installation, make sure Homebrew is in your PATH:
eval "$(/opt/homebrew/bin/brew shellenv)"
-
Development Tools
Install required development tools using Homebrew:
# Install Fastlane for iOS automation and localization brew install fastlane # Install linting tools brew install swiftlint brew install swiftformat brew install swift-format
-
Environment Setup
Add the following to your
~/.zprofile
:# Package Steward Configuration # Controls whether to use local dependencies (true) or remote dependencies (false) export SPM_CI_USE_LOCAL_DEPS=true
This environment variable controls dependency resolution behavior:
true
: Uses local dependencies for developmentfalse
: Uses remote dependencies (useful for CI environments)
Verify your installations:
# Check Homebrew
brew --version
# Check Fastlane
fastlane --version
# Check SwiftLint
swiftlint version
After adding the variable to your .zprofile
, verify your setup:
source ~/.zprofile
echo $SPM_CI_USE_LOCAL_DEPS
This should output: true
If you encounter any issues:
-
Update Homebrew and all packages:
brew update && brew upgrade
-
Check for any Homebrew problems:
brew doctor
-
Ensure Homebrew's binary location is in your PATH:
echo $PATH | grep brew
If the variable isn't being set:
-
Ensure your
.zprofile
is being sourced by adding to.zshrc
:if [ -f "$HOME/.zprofile" ]; then source "$HOME/.zprofile" fi
-
Check file permissions:
chmod 600 ~/.zprofile
-
Verify the variable after opening a new terminal:
echo $SPM_CI_USE_LOCAL_DEPS