Skip to content

Commit

Permalink
[chore] delete default scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mrs1669 committed May 14, 2024
1 parent 183ac94 commit 0f87f93
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/build-working.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,14 @@ jobs:

- name: Set Default Scheme
run: |
# .xcodeprojファイルを検索して変数に保存
projects=$(find . -name "*.xcodeproj")
# 各プロジェクトファイルのパスを表示
for project in $projects; do
echo "(basename "$project")"
done
xcodebuild -resolvePackageDependencies -project $project -scheme IOSTemplateApp
scheme_list=$(xcodebuild -list -json)
echo "$scheme_list"
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
# project=$(find . -name "*.xcodeproj" | head -n 1)
# default_scheme=$(echo "$scheme_list" | ruby -e "require 'json'; puts JSON.parse(STDIN.read)['project']['schemes'][0]")
# xcodebuild -resolvePackageDependencies -project IOSTemplateApp.xcodeproj -scheme IOSTemplateApp
# scheme_list=$(xcodebuild -list -json)
# echo "$scheme_list"
# 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:
Expand Down

0 comments on commit 0f87f93

Please sign in to comment.