-
Notifications
You must be signed in to change notification settings - Fork 3
♻️ :: (#343) Fastlane 적용 #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
6467f8b
50dbede
10d6b13
62d00b1
26f1e0a
65bc384
62cb540
0d22b53
907690b
f3e2118
7502b01
58afbf4
22ab67d
0a71a02
26ff490
f5ee08c
d550ce9
ab8b736
cd308bd
dce9ed4
7275db6
5fd6605
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,91 @@ | ||
| #!/bin/sh | ||
| cd ../ | ||
| #!/bin/bash | ||
|
|
||
| # Exit on error | ||
| set -e | ||
|
|
||
| # Enable debug output | ||
| set -x | ||
|
|
||
| # Store the original project directory | ||
| PROJECT_DIR="$(pwd)" | ||
| echo "Project directory: $PROJECT_DIR" | ||
| echo "Directory contents:" | ||
| ls -la | ||
|
|
||
| # Move to parent directory | ||
| cd .. | ||
|
|
||
| # Clone XCConfig repository | ||
| echo "Cloning JOBIS-v2-XCConfig..." | ||
| if [ -d "JOBIS-v2-XCConfig" ]; then | ||
| echo "JOBIS-v2-XCConfig already exists, removing..." | ||
| rm -rf JOBIS-v2-XCConfig | ||
| fi | ||
| git clone https://github.com/Team-return/JOBIS-v2-XCConfig.git | ||
| mv JOBIS-v2-XCConfig/XCConfig/ . | ||
| echo "Moving XCConfig to project root..." | ||
| cp -R JOBIS-v2-XCConfig/XCConfig/ "$PROJECT_DIR/" | ||
| rm -rf JOBIS-v2-XCConfig | ||
|
|
||
| # Clone GoogleInfo repository | ||
| echo "Cloning JOBIS-GoogleInfo..." | ||
| if [ -d "JOBIS-GoogleInfo" ]; then | ||
| echo "JOBIS-GoogleInfo already exists, removing..." | ||
| rm -rf JOBIS-GoogleInfo | ||
| fi | ||
| git clone https://github.com/Team-return/JOBIS-GoogleInfo.git | ||
| mv JOBIS-GoogleInfo/FireBase/ Projects/App/Resources/ | ||
|
|
||
| brew install make | ||
| echo "Moving FireBase config to project..." | ||
| mkdir -p "$PROJECT_DIR/Projects/App/Resources" | ||
| cp -R JOBIS-GoogleInfo/FireBase/ "$PROJECT_DIR/Projects/App/Resources/" | ||
| rm -rf JOBIS-GoogleInfo | ||
|
|
||
| curl https://mise.jdx.dev/install.sh | sh | ||
| export PATH="$HOME/.local/bin:$PATH" | ||
| eval "$(mise activate bash --shims)" | ||
| # Install make if not already installed | ||
| if ! command -v make &> /dev/null; then | ||
| echo "Installing make..." | ||
| brew install make | ||
| else | ||
| echo "make is already installed" | ||
| fi | ||
|
||
|
|
||
| mise install [email protected] | ||
| # Install tuist via Homebrew | ||
| echo "Installing tuist..." | ||
| if ! command -v tuist &> /dev/null; then | ||
| echo "Tuist not found, installing via curl..." | ||
| curl -Ls https://install.tuist.io | bash | ||
| export PATH="$HOME/.tuist/bin:$PATH" | ||
| else | ||
| echo "Tuist is already installed" | ||
| fi | ||
|
||
|
|
||
| # Verify tuist installation | ||
| echo "Tuist version:" | ||
| tuist version | ||
|
|
||
| # Install specific tuist version if needed | ||
| REQUIRED_VERSION="3.40.0" | ||
| CURRENT_VERSION=$(tuist version 2>&1 | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | head -1) | ||
| echo "Current tuist version: $CURRENT_VERSION" | ||
| echo "Required tuist version: $REQUIRED_VERSION" | ||
|
|
||
| if [ "$CURRENT_VERSION" != "$REQUIRED_VERSION" ]; then | ||
| echo "Installing tuist $REQUIRED_VERSION..." | ||
| tuist install $REQUIRED_VERSION | ||
| export PATH="$HOME/.tuist/bin:$PATH" | ||
| fi | ||
|
||
|
|
||
| # Navigate back to project directory | ||
| echo "Returning to project directory: $PROJECT_DIR" | ||
| cd "$PROJECT_DIR" | ||
|
|
||
| # Reset project | ||
| echo "Running make reset..." | ||
| make reset | ||
|
|
||
| # Fetch dependencies | ||
| echo "Fetching tuist dependencies..." | ||
| tuist fetch | ||
|
|
||
| # Generate project | ||
| echo "Generating Xcode project..." | ||
| TUIST_CI=1 tuist generate | ||
|
|
||
| echo "ci_post_clone.sh completed successfully!" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Team-return/JOBIS-DSM-iOS-v2
Length of output: 3074
git clone 실패 시나리오에 대한 명시적 오류 처리 추가 필요
set -e가 있어 스크립트는 git clone 실패 시 종료되지만, 실패 원인을 명확히 파악하기 위해 명시적 오류 처리를 추가하는 것이 좋습니다. 24번 줄과 35번 줄의 두 git clone 명령 모두 동일한 문제가 있습니다:JOBIS-GoogleInfo 클론도 같은 방식으로 처리하면 오류 발생 시 더 명확한 피드백을 제공할 수 있습니다.
🤖 Prompt for AI Agents