2525 - name : Build
2626 env :
2727 scheme : ${{ 'default' }}
28- platform : ${{ 'iOS Simulator' }}
2928 run : |
3029 cd Catchy
31- # instruments 대신 xcrun simctl 사용
32- device=$(xcrun simctl list devices available | grep -m 1 "iPhone" | sed -E 's/.*\(([0-9A-F-]+)\).*/\1/')
3330 if [ $scheme = default ]; then scheme=$(cat default); fi
3431 if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then
3532 filetype_parameter="workspace"
@@ -39,15 +36,14 @@ jobs:
3936 file_to_build="`ls -A | grep -i \\.xcodeproj\$`"
4037 fi
4138 file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
42- xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,id=$device"
39+ # 간단하게 "Any iOS Simulator Device" 사용
40+ xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=iOS Simulator,name=Any iOS Simulator Device"
4341
4442 - name : Test
4543 env :
4644 scheme : ${{ 'default' }}
47- platform : ${{ 'iOS Simulator' }}
4845 run : |
4946 cd Catchy
50- device=$(xcrun simctl list devices available | grep -m 1 "iPhone" | sed -E 's/.*\(([0-9A-F-]+)\).*/\1/')
5147 if [ $scheme = default ]; then scheme=$(cat default); fi
5248 if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then
5349 filetype_parameter="workspace"
5753 file_to_build="`ls -A | grep -i \\.xcodeproj\$`"
5854 fi
5955 file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
60- xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,id=$device "
56+ xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=iOS Simulator,name=Any iOS Simulator Device "
0 commit comments