[CI] iOS CI 시뮬레이터 부분 수정 #27
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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: Install iOS SDK | |
| # sudo를 붙여서 확실하게 권한을 주고 실행합니다. | |
| run: sudo xcodebuild -downloadPlatform iOS | |
| - name: Create Dummy Configs | |
| run: | | |
| mkdir -p Atcha-iOS | |
| 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" | |
| done | |
| - name: Build (Any iOS Device) | |
| run: | | |
| xcodebuild \ | |
| -project Atcha-iOS.xcodeproj \ | |
| -scheme Atcha-Dev \ # 이 부분을 Atcha-Dev로 수정 | |
| -configuration Debug \ | |
| -destination 'generic/platform=iOS' \ | |
| -sdk iphoneos \ | |
| IPHONEOS_DEPLOYMENT_TARGET=16.1 \ | |
| FRAMEWORK_SEARCH_PATHS='$(inherited) $(PROJECT_DIR)/**' \ | |
| SWIFT_INCLUDE_PATHS='$(inherited) $(PROJECT_DIR)/**' \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGN_IDENTITY="" \ | |
| AD_HOC_CODE_SIGNING_ALLOWED=YES \ | |
| clean build |