From e2d57a0a08c7c93de7be78794647d042033a44c6 Mon Sep 17 00:00:00 2001 From: Park Sin-Young <114901417+ParkSY0919@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:16:05 +0900 Subject: [PATCH 1/6] [FIx] patch Xcode Project Status --- ".github/workflows/\bdevelop.yml" | 3 +++ 1 file changed, 3 insertions(+) diff --git "a/.github/workflows/\bdevelop.yml" "b/.github/workflows/\bdevelop.yml" index 1a49d75..cef2c94 100644 --- "a/.github/workflows/\bdevelop.yml" +++ "b/.github/workflows/\bdevelop.yml" @@ -14,6 +14,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - name: Navigate to the correct directory + run: cd /Users/Git/Projects/KREAM-iOS/KREAM - name: Set Default Scheme run: | scheme_list=$(xcodebuild -list -json | tr -d "\n") From 473d1ba48ee107624878c5e7dd78b46a7ab681d6 Mon Sep 17 00:00:00 2001 From: Park Sin-Young <114901417+ParkSY0919@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:19:17 +0900 Subject: [PATCH 2/6] [Fix] patch For Github Actions2 --- ".github/workflows/\bdevelop.yml" | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git "a/.github/workflows/\bdevelop.yml" "b/.github/workflows/\bdevelop.yml" index cef2c94..0df9d2a 100644 --- "a/.github/workflows/\bdevelop.yml" +++ "b/.github/workflows/\bdevelop.yml" @@ -14,9 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Navigate to the correct directory - run: cd /Users/Git/Projects/KREAM-iOS/KREAM + run: cd KREAM-iOS/KREAM - name: Set Default Scheme run: | scheme_list=$(xcodebuild -list -json | tr -d "\n") From b3e84224e2e07b3a3707236180a4a7fd42818f7b Mon Sep 17 00:00:00 2001 From: Park Sin-Young <114901417+ParkSY0919@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:23:35 +0900 Subject: [PATCH 3/6] [Fix] patch For Github Actions 3 --- ".github/workflows/\bdevelop.yml" | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git "a/.github/workflows/\bdevelop.yml" "b/.github/workflows/\bdevelop.yml" index 0df9d2a..56ae482 100644 --- "a/.github/workflows/\bdevelop.yml" +++ "b/.github/workflows/\bdevelop.yml" @@ -14,31 +14,41 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + # 디렉토리 확인 + - name: Check current directory + run: pwd + + - name: List files in current directory + run: ls -la + + # KREAM-iOS/KREAM 경로 확인 후 navigate - name: Navigate to the correct directory run: cd KREAM-iOS/KREAM + - name: Set Default Scheme run: | scheme_list=$(xcodebuild -list -json | tr -d "\n") default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") echo $default | cat >default echo Using default scheme: $default + - name: Build env: scheme: ${{ 'default' }} platform: ${{ 'iOS Simulator' }} run: | - # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + - name: Test env: scheme: ${{ 'default' }} platform: ${{ 'iOS Simulator' }} run: | - # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi From dc097a1c91ee67c812c0f5290d0a087514d8d002 Mon Sep 17 00:00:00 2001 From: Park Sin-Young <114901417+ParkSY0919@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:25:29 +0900 Subject: [PATCH 4/6] [Fix] patch For Github Actions 4 --- ".github/workflows/\bdevelop.yml" | 11 ----------- 1 file changed, 11 deletions(-) diff --git "a/.github/workflows/\bdevelop.yml" "b/.github/workflows/\bdevelop.yml" index 56ae482..af11f6f 100644 --- "a/.github/workflows/\bdevelop.yml" +++ "b/.github/workflows/\bdevelop.yml" @@ -14,17 +14,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - # 디렉토리 확인 - - name: Check current directory - run: pwd - - - name: List files in current directory - run: ls -la - - # KREAM-iOS/KREAM 경로 확인 후 navigate - - name: Navigate to the correct directory - run: cd KREAM-iOS/KREAM - name: Set Default Scheme run: | From c609f705c1885d41e60e5e7ae7736fbb05aeae5e Mon Sep 17 00:00:00 2001 From: Park Sin-Young <114901417+ParkSY0919@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:28:42 +0900 Subject: [PATCH 5/6] [Fix] patch For Github Actions 5 --- ".github/workflows/\bdevelop.yml" | 5 +++++ 1 file changed, 5 insertions(+) diff --git "a/.github/workflows/\bdevelop.yml" "b/.github/workflows/\bdevelop.yml" index af11f6f..0276cc3 100644 --- "a/.github/workflows/\bdevelop.yml" +++ "b/.github/workflows/\bdevelop.yml" @@ -14,6 +14,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Check current directory + run: pwd # 현재 디렉토리 확인 + + - name: List files in current directory + run: ls -la # 디렉토리의 파일 목록 확인 - name: Set Default Scheme run: | From f07f96fb6357719149611d389037b6a62f5bdb0b Mon Sep 17 00:00:00 2001 From: Park Sin-Young <114901417+ParkSY0919@users.noreply.github.com> Date: Sun, 6 Oct 2024 19:16:58 +0900 Subject: [PATCH 6/6] [Fix] patch For Github Actions 6 --- ".github/workflows/\bdevelop.yml" | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git "a/.github/workflows/\bdevelop.yml" "b/.github/workflows/\bdevelop.yml" index 0276cc3..b5ff22f 100644 --- "a/.github/workflows/\bdevelop.yml" +++ "b/.github/workflows/\bdevelop.yml" @@ -22,7 +22,7 @@ jobs: - name: Set Default Scheme run: | - scheme_list=$(xcodebuild -list -json | tr -d "\n") + scheme_list=$(xcodebuild -list -json -project ./KREAM/KREAM.xcodeproj | tr -d "\n") default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") echo $default | cat >default echo Using default scheme: $default @@ -34,8 +34,7 @@ jobs: run: | device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + filetype_parameter="project" && file_to_build="./KREAM/KREAM.xcodeproj" xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" - name: Test @@ -45,6 +44,5 @@ jobs: run: | device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + filetype_parameter="project" && file_to_build="./KREAM/KREAM.xcodeproj" xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"