mirror of
https://github.com/yattee/yattee.git
synced 2026-02-19 17:29:45 +00:00
16 lines
463 B
Bash
Executable File
16 lines
463 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DEVICE_NAME="${1:-iPhone 17 Pro}"
|
|
|
|
echo "Building Yattee for $DEVICE_NAME..."
|
|
|
|
xcodebuild -project Yattee.xcodeproj -scheme "Yattee" -configuration Debug -destination "platform=iOS,name=$DEVICE_NAME" -derivedDataPath ./build build
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "Installing to $DEVICE_NAME..."
|
|
xcrun devicectl device install app --device "$DEVICE_NAME" ./build/Build/Products/Debug-iphoneos/Yattee.app
|
|
else
|
|
echo "Build failed"
|
|
exit 1
|
|
fi
|