From b9b4b119fde10abe1bc71ebdeb7f05b9e566dc23 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 15:45:12 +0900 Subject: [PATCH 01/17] =?UTF-8?q?meta=E3=83=87=E3=83=BC=E3=82=BF=E3=81=AE?= =?UTF-8?q?=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/metadata/copyright.txt | 1 - fastlane/metadata/en-US/description.txt | 2 -- fastlane/metadata/en-US/keywords.txt | 1 - fastlane/metadata/en-US/marketing_url.txt | 1 - fastlane/metadata/en-US/name.txt | 1 - fastlane/metadata/en-US/privacy_url.txt | 1 - fastlane/metadata/en-US/promotional_text.txt | 1 - fastlane/metadata/en-US/release_notes.txt | 1 - fastlane/metadata/en-US/subtitle.txt | 1 - fastlane/metadata/en-US/support_url.txt | 1 - fastlane/metadata/primary_category.txt | 1 - fastlane/metadata/primary_first_sub_category.txt | 1 - fastlane/metadata/primary_second_sub_category.txt | 1 - fastlane/metadata/review_information/demo_password.txt | 1 - fastlane/metadata/review_information/demo_user.txt | 1 - fastlane/metadata/review_information/email_address.txt | 1 - fastlane/metadata/review_information/first_name.txt | 1 - fastlane/metadata/review_information/last_name.txt | 1 - fastlane/metadata/review_information/notes.txt | 1 - fastlane/metadata/review_information/phone_number.txt | 1 - fastlane/metadata/secondary_category.txt | 1 - fastlane/metadata/secondary_first_sub_category.txt | 1 - fastlane/metadata/secondary_second_sub_category.txt | 1 - 23 files changed, 24 deletions(-) delete mode 100644 fastlane/metadata/copyright.txt delete mode 100644 fastlane/metadata/en-US/description.txt delete mode 100644 fastlane/metadata/en-US/keywords.txt delete mode 100644 fastlane/metadata/en-US/marketing_url.txt delete mode 100644 fastlane/metadata/en-US/name.txt delete mode 100644 fastlane/metadata/en-US/privacy_url.txt delete mode 100644 fastlane/metadata/en-US/promotional_text.txt delete mode 100644 fastlane/metadata/en-US/release_notes.txt delete mode 100644 fastlane/metadata/en-US/subtitle.txt delete mode 100644 fastlane/metadata/en-US/support_url.txt delete mode 100644 fastlane/metadata/primary_category.txt delete mode 100644 fastlane/metadata/primary_first_sub_category.txt delete mode 100644 fastlane/metadata/primary_second_sub_category.txt delete mode 100644 fastlane/metadata/review_information/demo_password.txt delete mode 100644 fastlane/metadata/review_information/demo_user.txt delete mode 100644 fastlane/metadata/review_information/email_address.txt delete mode 100644 fastlane/metadata/review_information/first_name.txt delete mode 100644 fastlane/metadata/review_information/last_name.txt delete mode 100644 fastlane/metadata/review_information/notes.txt delete mode 100644 fastlane/metadata/review_information/phone_number.txt delete mode 100644 fastlane/metadata/secondary_category.txt delete mode 100644 fastlane/metadata/secondary_first_sub_category.txt delete mode 100644 fastlane/metadata/secondary_second_sub_category.txt diff --git a/fastlane/metadata/copyright.txt b/fastlane/metadata/copyright.txt deleted file mode 100644 index 4c890d1..0000000 --- a/fastlane/metadata/copyright.txt +++ /dev/null @@ -1 +0,0 @@ -2019 tarappo diff --git a/fastlane/metadata/en-US/description.txt b/fastlane/metadata/en-US/description.txt deleted file mode 100644 index 51922ff..0000000 --- a/fastlane/metadata/en-US/description.txt +++ /dev/null @@ -1,2 +0,0 @@ -This application is sample. -so do not release. diff --git a/fastlane/metadata/en-US/keywords.txt b/fastlane/metadata/en-US/keywords.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/en-US/keywords.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/en-US/marketing_url.txt b/fastlane/metadata/en-US/marketing_url.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/en-US/marketing_url.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/en-US/name.txt b/fastlane/metadata/en-US/name.txt deleted file mode 100644 index b976c12..0000000 --- a/fastlane/metadata/en-US/name.txt +++ /dev/null @@ -1 +0,0 @@ -CICD - SampleApp diff --git a/fastlane/metadata/en-US/privacy_url.txt b/fastlane/metadata/en-US/privacy_url.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/en-US/privacy_url.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/en-US/promotional_text.txt b/fastlane/metadata/en-US/promotional_text.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/en-US/promotional_text.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/en-US/release_notes.txt b/fastlane/metadata/en-US/release_notes.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/en-US/release_notes.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/en-US/subtitle.txt b/fastlane/metadata/en-US/subtitle.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/en-US/subtitle.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/en-US/support_url.txt b/fastlane/metadata/en-US/support_url.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/en-US/support_url.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/primary_category.txt b/fastlane/metadata/primary_category.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/primary_category.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/primary_first_sub_category.txt b/fastlane/metadata/primary_first_sub_category.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/primary_first_sub_category.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/primary_second_sub_category.txt b/fastlane/metadata/primary_second_sub_category.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/primary_second_sub_category.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/review_information/demo_password.txt b/fastlane/metadata/review_information/demo_password.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/review_information/demo_password.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/review_information/demo_user.txt b/fastlane/metadata/review_information/demo_user.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/review_information/demo_user.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/review_information/email_address.txt b/fastlane/metadata/review_information/email_address.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/review_information/email_address.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/review_information/first_name.txt b/fastlane/metadata/review_information/first_name.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/review_information/first_name.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/review_information/last_name.txt b/fastlane/metadata/review_information/last_name.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/review_information/last_name.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/review_information/notes.txt b/fastlane/metadata/review_information/notes.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/review_information/notes.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/review_information/phone_number.txt b/fastlane/metadata/review_information/phone_number.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/review_information/phone_number.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/secondary_category.txt b/fastlane/metadata/secondary_category.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/secondary_category.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/secondary_first_sub_category.txt b/fastlane/metadata/secondary_first_sub_category.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/secondary_first_sub_category.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fastlane/metadata/secondary_second_sub_category.txt b/fastlane/metadata/secondary_second_sub_category.txt deleted file mode 100644 index 8b13789..0000000 --- a/fastlane/metadata/secondary_second_sub_category.txt +++ /dev/null @@ -1 +0,0 @@ - From 932ca49d6d0ec57a1fac48ae72180b2c2539f5dd Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 15:45:31 +0900 Subject: [PATCH 02/17] =?UTF-8?q?=E5=BF=85=E8=A6=81=E3=81=AE=E3=81=AA?= =?UTF-8?q?=E3=81=84file=E3=81=AE=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Deliverfile | 7 ------- fastlane/Matchfile | 4 ---- 2 files changed, 11 deletions(-) delete mode 100644 fastlane/Deliverfile delete mode 100644 fastlane/Matchfile diff --git a/fastlane/Deliverfile b/fastlane/Deliverfile deleted file mode 100644 index 57a798c..0000000 --- a/fastlane/Deliverfile +++ /dev/null @@ -1,7 +0,0 @@ -# The Deliverfile allows you to store various App Store Connect metadata -# For more information, check out the docs -# https://docs.fastlane.tools/actions/deliver/ - -release_notes({ - 'default' => "Sample Release Note" -}) \ No newline at end of file diff --git a/fastlane/Matchfile b/fastlane/Matchfile deleted file mode 100644 index eb9e987..0000000 --- a/fastlane/Matchfile +++ /dev/null @@ -1,4 +0,0 @@ -git_url(ENV['MATCH_URL']) - -storage_mode("git") -app_identifier(["com.tarappo.cisample"]) From 86b031f2794bc5fc44ebb696095861120c830a20 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 15:54:40 +0900 Subject: [PATCH 03/17] =?UTF-8?q?TestFlight=E7=94=A8=E3=81=AElane=E3=82=92?= =?UTF-8?q?=E7=94=A8=E6=84=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Fastfile | 71 ++++++++++++++++------------------------------- 1 file changed, 24 insertions(+), 47 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index f20a855..39f594d 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1,16 +1,36 @@ +skip_docs + default_platform :ios platform :ios do - keychain_name = "ios-build.keychain" - keychain_password = SecureRandom.base64 - build_number = ENV["BUILD_NUMBER"] ||= "0" - + desc "run test" lane :test do run_tests( output_directory: "./test_result" ) end + + lane :upload_ipa_for_testflight do + key_id = ENV["KEY_ID"] + issuer_id = ENV["ISSUER_ID"] + ipa_file_path = ENV["IPA_FILE_PATH"] + auth_key_p8_path = ENV["AUTHKEY_P8_FILE_PATH"] + + app_store_connect_api_key( + key_id: key_id, + issuer_id: issuer_id, + key_filepath: auth_key_p8_path, + duration: 1200, + in_house: false + ) + + upload_to_testflight( + ipa: ipa_file_path, + skip_submission: true, + ) + end + desc "build Simulator File" lane :build_for_simulator do build_app( @@ -24,47 +44,4 @@ platform :ios do end - lane :build_debug_without_match do - clean_build_artifacts - increment_build_number( - build_number: "0." + ENV["BUILD_NUMBER"] - ) - - build(type: "Debug") - end - - lane :build_debug do - match(type: "development", readonly: is_ci) - - clean_build_artifacts - increment_build_number( - build_number: "0." + ENV["BUILD_NUMBER"] - ) - - build(type: "Debug") - end - - lane :build_release do - match(type: "appstore", readonly: is_ci) - - clean_build_artifacts - increment_build_number( - build_number: "1." + ENV["BUILD_NUMBER"] - ) - - build(type: "Release") - end - - - private_lane :build do |options| - configuration = options[:type] - export_method = configuration == "Release" ? "appstore" : "development" - - gym( - project: "./ci-sample.xcodeproj", - scheme: "ci-sample", - configuration: configuration, - export_method: export_method - ) - end end From b7d5db746416173951c2c4c1a96bd57a96615562 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 15:55:11 +0900 Subject: [PATCH 04/17] =?UTF-8?q?TestFlight=E3=81=B8=E3=81=AE=E3=82=A2?= =?UTF-8?q?=E3=83=83=E3=83=97=E3=83=AD=E3=83=BC=E3=83=89=E7=94=A8=E3=81=AE?= =?UTF-8?q?=E6=BA=96=E5=82=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull_request.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 276fab0..1891c91 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -29,6 +29,29 @@ jobs: run: | echo $AUTHKEY_P8_BASE64 | base64 -d > $PWD/Authkey.p8 xcodebuild -exportArchive -archivePath ci-sample_debug.xcarchive -exportPath ./build_result -exportOptionsPlist ./ExportOptions.plist -allowProvisioningUpdates -authenticationKeyIssuerID $ISSUER_ID -authenticationKeyID $KEY_ID -authenticationKeyPath $PWD/Authkey.p8 + - name: Cache bundle directory + uses: actions/cache@v4 + with: + path: vendor/bundle + key: ${{ runner.os }}-gem-${{ hashFiles('Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gem- + - name: Setup + shell: bash + id: setup + run: | + bundle config set path 'vendor/bundle' + bundle install + - name: test flight + env: + AUTHKEY_P8_BASE64: ${{ secrets.AUTHKEY_P8_BASE64 }} + ISSUER_ID: ${{ secrets.ISSUER_ID }} + KEY_ID: ${{ secrets.KEY_ID }} + run: | + ENV["IPA_FILE_PATH"]="./build_result/ci-sample.ipa" + ENV["AUTHKEY_P8_FILE_PATH"]=$PWD/Authkey.p8 + bundle exec fastlane upload_ipa_for_testflight + test: runs-on: macos-latest From 2bb965cdfc55d63473b2ac3a39547e98d1c74fb4 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:01:08 +0900 Subject: [PATCH 05/17] add opt_out_usage --- fastlane/Fastfile | 1 + 1 file changed, 1 insertion(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 39f594d..dae896e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1,4 +1,5 @@ skip_docs +opt_out_usage default_platform :ios From 843cb0f2325c5dd26f15d0d9f2264f00e8e70882 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:01:28 +0900 Subject: [PATCH 06/17] =?UTF-8?q?=E7=92=B0=E5=A2=83=E5=A4=89=E6=95=B0?= =?UTF-8?q?=E3=81=AE=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1891c91..08580cb 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -47,9 +47,9 @@ jobs: AUTHKEY_P8_BASE64: ${{ secrets.AUTHKEY_P8_BASE64 }} ISSUER_ID: ${{ secrets.ISSUER_ID }} KEY_ID: ${{ secrets.KEY_ID }} + IPA_FILE_PATH: "./build_result/ci-sample.ipa" + AUTHKEY_P8_FILE_PATH: "${PWD}/Authkey.p8" run: | - ENV["IPA_FILE_PATH"]="./build_result/ci-sample.ipa" - ENV["AUTHKEY_P8_FILE_PATH"]=$PWD/Authkey.p8 bundle exec fastlane upload_ipa_for_testflight From 28d3bfb30b9ea9ba8e076e0fbf6738354b06be8d Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:04:30 +0900 Subject: [PATCH 07/17] =?UTF-8?q?=E3=83=91=E3=82=B9=E5=91=A8=E3=82=8A?= =?UTF-8?q?=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull_request.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 08580cb..8988a41 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -42,13 +42,14 @@ jobs: run: | bundle config set path 'vendor/bundle' bundle install + ls -l - name: test flight env: AUTHKEY_P8_BASE64: ${{ secrets.AUTHKEY_P8_BASE64 }} ISSUER_ID: ${{ secrets.ISSUER_ID }} KEY_ID: ${{ secrets.KEY_ID }} IPA_FILE_PATH: "./build_result/ci-sample.ipa" - AUTHKEY_P8_FILE_PATH: "${PWD}/Authkey.p8" + AUTHKEY_P8_FILE_PATH: $PWD/Authkey.p8 run: | bundle exec fastlane upload_ipa_for_testflight From e130a98e42c354009f629fb1da1da4c8e9d4f5a4 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:07:21 +0900 Subject: [PATCH 08/17] =?UTF-8?q?=E3=83=91=E3=82=B9=E5=91=A8=E3=82=8A?= =?UTF-8?q?=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull_request.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 8988a41..834aab7 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -42,14 +42,13 @@ jobs: run: | bundle config set path 'vendor/bundle' bundle install - ls -l - name: test flight env: AUTHKEY_P8_BASE64: ${{ secrets.AUTHKEY_P8_BASE64 }} ISSUER_ID: ${{ secrets.ISSUER_ID }} KEY_ID: ${{ secrets.KEY_ID }} IPA_FILE_PATH: "./build_result/ci-sample.ipa" - AUTHKEY_P8_FILE_PATH: $PWD/Authkey.p8 + AUTHKEY_P8_FILE_PATH: "./Authkey.p8" run: | bundle exec fastlane upload_ipa_for_testflight From 37149dfaa8fe33ed9c966a98e795a37b7530655f Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:18:26 +0900 Subject: [PATCH 09/17] =?UTF-8?q?upload=E3=81=A8method=E3=82=92=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ExportOptions.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExportOptions.plist b/ExportOptions.plist index c4366a0..18d655d 100644 --- a/ExportOptions.plist +++ b/ExportOptions.plist @@ -3,11 +3,11 @@ destination - export + upload manageAppVersionAndBuildNumber method - ad-hoc + app-store provisioningProfiles com.tarappo.uitest From b0802123cb09b4fdcf0b504ec0f5077d51473348 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:36:24 +0900 Subject: [PATCH 10/17] =?UTF-8?q?ExportOptions=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ExportOptions.plist | 4 ++-- ExportOptionsTestFlight.plist | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 ExportOptionsTestFlight.plist diff --git a/ExportOptions.plist b/ExportOptions.plist index 18d655d..c4366a0 100644 --- a/ExportOptions.plist +++ b/ExportOptions.plist @@ -3,11 +3,11 @@ destination - upload + export manageAppVersionAndBuildNumber method - app-store + ad-hoc provisioningProfiles com.tarappo.uitest diff --git a/ExportOptionsTestFlight.plist b/ExportOptionsTestFlight.plist new file mode 100644 index 0000000..eacaf36 --- /dev/null +++ b/ExportOptionsTestFlight.plist @@ -0,0 +1,25 @@ + + + + + destination + upload + manageAppVersionAndBuildNumber + + method + app-store-connect + provisioningProfiles + + com.tarappo.uitest + UI Test Sample + + signingStyle + automatic + stripSwiftSymbols + + teamID + BY773RCU69 + uploadSymbols + + + From 0fd3222c96d479660b9d18697e205a164c649c3a Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:36:44 +0900 Subject: [PATCH 11/17] =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=83=97=E3=83=A9?= =?UTF-8?q?=E3=82=A4=E3=82=A2=E3=83=B3=E3=82=B9=E3=81=AE=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci-sample/Info.plist | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci-sample/Info.plist b/ci-sample/Info.plist index 6d915c8..f8eec6a 100644 --- a/ci-sample/Info.plist +++ b/ci-sample/Info.plist @@ -32,5 +32,7 @@ UIInterfaceOrientationPortrait + ITSAppUsesNonExemptEncryption + From 476b5429f77877e9869a01dc3c9f6eeeae286442 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:37:02 +0900 Subject: [PATCH 12/17] =?UTF-8?q?PR=E3=81=AE=E3=83=AF=E3=83=BC=E3=82=AF?= =?UTF-8?q?=E3=83=95=E3=83=AD=E3=83=BC=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull_request.yml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 834aab7..276fab0 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -29,29 +29,6 @@ jobs: run: | echo $AUTHKEY_P8_BASE64 | base64 -d > $PWD/Authkey.p8 xcodebuild -exportArchive -archivePath ci-sample_debug.xcarchive -exportPath ./build_result -exportOptionsPlist ./ExportOptions.plist -allowProvisioningUpdates -authenticationKeyIssuerID $ISSUER_ID -authenticationKeyID $KEY_ID -authenticationKeyPath $PWD/Authkey.p8 - - name: Cache bundle directory - uses: actions/cache@v4 - with: - path: vendor/bundle - key: ${{ runner.os }}-gem-${{ hashFiles('Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gem- - - name: Setup - shell: bash - id: setup - run: | - bundle config set path 'vendor/bundle' - bundle install - - name: test flight - env: - AUTHKEY_P8_BASE64: ${{ secrets.AUTHKEY_P8_BASE64 }} - ISSUER_ID: ${{ secrets.ISSUER_ID }} - KEY_ID: ${{ secrets.KEY_ID }} - IPA_FILE_PATH: "./build_result/ci-sample.ipa" - AUTHKEY_P8_FILE_PATH: "./Authkey.p8" - run: | - bundle exec fastlane upload_ipa_for_testflight - test: runs-on: macos-latest From 429b82f8bba7bdfb4a6641a7126ba0eec9f17ba5 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:55:16 +0900 Subject: [PATCH 13/17] =?UTF-8?q?Bitrise=E3=81=AEyml=E3=83=95=E3=82=A1?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E3=82=92repository=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bitrise.yml | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 bitrise.yml diff --git a/bitrise.yml b/bitrise.yml new file mode 100644 index 0000000..91f57a0 --- /dev/null +++ b/bitrise.yml @@ -0,0 +1,67 @@ +format_version: "13" +default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git +project_type: ios +workflows: + build: + summary: Run your Xcode tests and create an IPA file to install your app on a device or share it with your team. + description: The workflow will first clone your Git repository, cache and install your project's dependencies if any, run your Xcode tests, export an IPA file from the project and save it. + steps: + - git-clone@8: {} + - cache-pull@2: {} + - script@1: + inputs: + - script_file_path: null + - content: |- + #!/usr/bin/env bash + # fail if any commands fails + set -e + # make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully + set -o pipefail + # debug log + set -x + + xcodebuild archive CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -project ./ci-sample.xcodeproj -scheme ci-sample -configuration Debug -archivePath ./ci-sample_debug + title: Archiveの作成 + - script@1: + inputs: + - script_file_path: null + - content: | + #!/usr/bin/env bash + # fail if any commands fails + set -e + # make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully + set -o pipefail + # debug log + set -x + + echo "${AUTHKEY_P8_BASE64}" | base64 -d > $PWD/Authkey.p8 + + xcodebuild -exportArchive -archivePath ci-sample_debug.xcarchive -exportPath ./output -exportOptionsPlist ./ExportOptions.plist -allowProvisioningUpdates -authenticationKeyIssuerID $ISSUER_ID -authenticationKeyID $KEY_ID -authenticationKeyPath $PWD/Authkey.p8 + title: Archiveからipaを生成 + - cache-push@2: {} + - deploy-to-bitrise-io@2: + inputs: + - deploy_path: ./output +meta: + bitrise.io: + stack: osx-xcode-15.4.x + machine_type_id: g2-m1.4core +app: + envs: + - opts: + is_expand: false + BITRISE_PROJECT_PATH: ci-sample.xcworkspace + - opts: + is_expand: false + BITRISE_SCHEME: ci-sample + - opts: + is_expand: false + BITRISE_DISTRIBUTION_METHOD: ad-hoc +trigger_map: +- pull_request_target_branch: + regex: main + type: pull_request + workflow: build +- push_branch: main + type: push + workflow: build From c93923bd7bec587424225be2403f70adb360a8f1 Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:55:26 +0900 Subject: [PATCH 14/17] =?UTF-8?q?README=E3=81=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index f981bd7..8d88f10 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,17 @@ mainは常に問題ないコードが入っている前提です。 - 特定タイミングになったらtagをきってリリース +# CI/CDサービスごとの実行内容 +すべてのCI/CDサービスでTest Flightへのアップロードをおこなうのは微妙なので次のように分けています。 + +|CI/CDサービス|トリガー|内容| +|:----------|:------|:---| +|GitHub Actions|PR|TestFlightへアップロード| +|CircleCI|PR|アプリのビルドと保存| +|Bitrise|PR|アプリのビルドと保存| + + + ## CI Badge Badgeが利用できるCIサービスについては以下に全て貼ります。 From ac909c4829c6df1e9290b64e212ae01ac632b82c Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 16:55:50 +0900 Subject: [PATCH 15/17] =?UTF-8?q?GitHub=20Actions=E3=81=A7Test=20Flight?= =?UTF-8?q?=E3=81=B8=E3=81=AE=E3=82=A2=E3=83=83=E3=83=97=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 276fab0..b19f387 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -21,14 +21,14 @@ jobs: - name: archive run: | xcodebuild archive CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -project ./ci-sample.xcodeproj -scheme ci-sample -configuration Debug -archivePath ./ci-sample_debug - - name: ipa + - name: upload testflight env: AUTHKEY_P8_BASE64: ${{ secrets.AUTHKEY_P8_BASE64 }} ISSUER_ID: ${{ secrets.ISSUER_ID }} KEY_ID: ${{ secrets.KEY_ID }} run: | echo $AUTHKEY_P8_BASE64 | base64 -d > $PWD/Authkey.p8 - xcodebuild -exportArchive -archivePath ci-sample_debug.xcarchive -exportPath ./build_result -exportOptionsPlist ./ExportOptions.plist -allowProvisioningUpdates -authenticationKeyIssuerID $ISSUER_ID -authenticationKeyID $KEY_ID -authenticationKeyPath $PWD/Authkey.p8 + xcodebuild -exportArchive -archivePath ci-sample_debug.xcarchive -exportPath ./build_result -exportOptionsPlist ./ExportOptionsTestFlight.plist -allowProvisioningUpdates -authenticationKeyIssuerID $ISSUER_ID -authenticationKeyID $KEY_ID -authenticationKeyPath $PWD/Authkey.p8 test: runs-on: macos-latest From 6646d8dbaf7e9b19ff54f2a1af76b5f8a7fb5c9f Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 17:06:49 +0900 Subject: [PATCH 16/17] =?UTF-8?q?DEVELOPER=5FDIR=E3=82=92=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull_request.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b19f387..6b3deb4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -16,6 +16,8 @@ jobs: build: runs-on: macos-latest timeout-minutes: 40 + env: + DEVELOPER_DIR: "/Applications/Xcode_15.1.app/Contents/Developer" steps: - uses: actions/checkout@v4 - name: archive From 194f49ae5978b88f9a9768031571206162d42acb Mon Sep 17 00:00:00 2001 From: tarappo Date: Mon, 22 Jul 2024 20:18:23 +0900 Subject: [PATCH 17/17] =?UTF-8?q?Xcode=E3=81=AE=E3=83=90=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=82=9215.4=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6b3deb4..e82511d 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -17,7 +17,7 @@ jobs: runs-on: macos-latest timeout-minutes: 40 env: - DEVELOPER_DIR: "/Applications/Xcode_15.1.app/Contents/Developer" + DEVELOPER_DIR: "/Applications/Xcode_15.4.app/Contents/Developer" steps: - uses: actions/checkout@v4 - name: archive