Skip to content

[CI] iOS CI 시뮬레이터 부분 수정 #24

[CI] iOS CI 시뮬레이터 부분 수정

[CI] iOS CI 시뮬레이터 부분 수정 #24

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: iOS CI
on:
push:
branches: ["develop"]
pull_request:
branches: ["develop"]
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.2"
- name: Debug toolchain
run: |
xcodebuild -version
xcodebuild -showsdks
xcrun simctl list runtimes
- name: Create Dummy Configs
run: |
# 프로젝트 구조에 맞춰 폴더 생성
mkdir -p Atcha-iOS
# 생성할 파일 목록 (LiveConfig 추가)
CONFIG_FILES=("DevConfig.xcconfig" "StageConfig.xcconfig" "LiveConfig.xcconfig")
for FILE in "${CONFIG_FILES[@]}"; do
# 루트와 프로젝트 폴더 양쪽 모두 생성 (안전 장치)
echo "// Dummy Config for CI" > "$FILE"
echo "// Dummy Config for CI" > "Atcha-iOS/$FILE"
echo "Created $FILE"
done
- name: Build (Any iOS Device)
run: |
xcodebuild \
-project Atcha-iOS.xcodeproj \
-scheme Atcha-iOS \
-configuration Debug \
-destination 'generic/platform=iOS' \
-sdk iphoneos \
IPHONEOS_DEPLOYMENT_TARGET=16.1 \
FRAMEWORK_SEARCH_PATHS='$(inherited) $(PROJECT_DIR)' \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
AD_HOC_CODE_SIGNING_ALLOWED=YES \
clean build