Skip to content

Latest commit

 

History

History

vault-ios

vault-ios

Setup Rust toolchains

rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim

Build from command line

# list targets, build configurations and schemes
xcodebuild -list -project Vault.xcodeproj

# show destinations
xcodebuild -scheme Vault -showdestinations

# build
xcodebuild -scheme Vault -destination "platform=iOS Simulator,name=iPhone 14 Pro" build

# clean
xcodebuild -scheme Vault clean

Generate bindings manually

PROJECT_DIR=$(pwd) bin/generate-bindings.sh

Generate release archive

Generate an app archive (e.g. to analyze its size):

# build
xcodebuild -project Vault.xcodeproj -scheme Vault -destination "generic/platform=iOS" -archivePath Release/Vault.xcarchive archive

# app size
du -hs Release/Vault.xcarchive/Products/Applications/Vault.app

# export
xcodebuild -exportArchive -archivePath Release/Vault.xcarchive -exportPath Release/Vault -exportOptionsPlist ExportOptionsAppStore.plist

Format code

Install swift-format:

brew install mint
mint install apple/swift-format@main
ln -s $HOME/.mint/bin/swift-format /usr/local/bin/swift-format

Format code:

swift-format --in-place --recursive .