From 34682377b99df5bb5caaec6bad1a9c1cd3ee7a4d Mon Sep 17 00:00:00 2001 From: Tao Xu Date: Fri, 1 Oct 2021 09:33:12 -0700 Subject: [PATCH] [iOS][CI] Update dev certs (#66004) Summary: Fixes https://github.com/pytorch/pytorch/issues/65988 Pull Request resolved: https://github.com/pytorch/pytorch/pull/66004 Reviewed By: xta0 Differential Revision: D31340893 Pulled By: malfet fbshipit-source-id: 3bf0be266e9686a73d62e86c5cf0bebeb0416260 --- .circleci/config.yml | 11 ++++++----- .circleci/scripts/binary_ios_test.sh | 11 ++++++----- .../job-specs/job-specs-custom.yml | 11 ++++++----- ios/TestApp/AppleWWDRCAG3.cer | Bin 0 -> 1109 bytes ios/TestApp/fastlane/Fastfile | 9 ++++++++- 5 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 ios/TestApp/AppleWWDRCAG3.cer diff --git a/.circleci/config.yml b/.circleci/config.yml index 8375454e8b6..38147924316 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1566,16 +1566,17 @@ jobs: # install fastlane sudo gem install bundler && bundle install # install certificates - echo ${IOS_CERT_KEY} >> cert.txt + echo ${IOS_CERT_KEY_2022} >> cert.txt base64 --decode cert.txt -o Certificates.p12 rm cert.txt - bundle exec fastlane install_cert + bundle exec fastlane install_root_cert + bundle exec fastlane install_dev_cert # install the provisioning profile - PROFILE=PyTorch_CI_2021.mobileprovision + PROFILE=PyTorch_CI_2022.mobileprovision PROVISIONING_PROFILES=~/Library/MobileDevice/Provisioning\ Profiles mkdir -pv "${PROVISIONING_PROFILES}" cd "${PROVISIONING_PROFILES}" - echo ${IOS_SIGN_KEY} >> cert.txt + echo ${IOS_SIGN_KEY_2022} >> cert.txt base64 --decode cert.txt -o ${PROFILE} rm cert.txt - run: @@ -1636,7 +1637,7 @@ jobs: command: | set -e PROJ_ROOT=/Users/distiller/project - PROFILE=PyTorch_CI_2021 + PROFILE=PyTorch_CI_2022 # run the ruby build script if ! [ -x "$(command -v xcodebuild)" ]; then echo 'Error: xcodebuild is not installed.' diff --git a/.circleci/scripts/binary_ios_test.sh b/.circleci/scripts/binary_ios_test.sh index b9028b4a001..3f052175235 100644 --- a/.circleci/scripts/binary_ios_test.sh +++ b/.circleci/scripts/binary_ios_test.sh @@ -8,16 +8,17 @@ cd ${PROJ_ROOT}/ios/TestApp # install fastlane sudo gem install bundler && bundle install # install certificates -echo "${IOS_CERT_KEY}" >> cert.txt +echo "${IOS_CERT_KEY_2022}" >> cert.txt base64 --decode cert.txt -o Certificates.p12 rm cert.txt -bundle exec fastlane install_cert +bundle exec fastlane install_root_cert +bundle exec fastlane install_dev_cert # install the provisioning profile -PROFILE=PyTorch_CI_2021.mobileprovision +PROFILE=PyTorch_CI_2022.mobileprovision PROVISIONING_PROFILES=~/Library/MobileDevice/Provisioning\ Profiles mkdir -pv "${PROVISIONING_PROFILES}" cd "${PROVISIONING_PROFILES}" -echo "${IOS_SIGN_KEY}" >> cert.txt +echo "${IOS_SIGN_KEY_2022}" >> cert.txt base64 --decode cert.txt -o ${PROFILE} rm cert.txt # run the ruby build script @@ -25,5 +26,5 @@ if ! [ -x "$(command -v xcodebuild)" ]; then echo 'Error: xcodebuild is not installed.' exit 1 fi -PROFILE=PyTorch_CI_2021 +PROFILE=PyTorch_CI_2022 ruby ${PROJ_ROOT}/scripts/xcode_build.rb -i ${PROJ_ROOT}/build_ios/install -x ${PROJ_ROOT}/ios/TestApp/TestApp.xcodeproj -p ${IOS_PLATFORM} -c ${PROFILE} -t ${IOS_DEV_TEAM_ID} diff --git a/.circleci/verbatim-sources/job-specs/job-specs-custom.yml b/.circleci/verbatim-sources/job-specs/job-specs-custom.yml index 98c3d73314b..dafc543a123 100644 --- a/.circleci/verbatim-sources/job-specs/job-specs-custom.yml +++ b/.circleci/verbatim-sources/job-specs/job-specs-custom.yml @@ -467,16 +467,17 @@ # install fastlane sudo gem install bundler && bundle install # install certificates - echo ${IOS_CERT_KEY} >> cert.txt + echo ${IOS_CERT_KEY_2022} >> cert.txt base64 --decode cert.txt -o Certificates.p12 rm cert.txt - bundle exec fastlane install_cert + bundle exec fastlane install_root_cert + bundle exec fastlane install_dev_cert # install the provisioning profile - PROFILE=PyTorch_CI_2021.mobileprovision + PROFILE=PyTorch_CI_2022.mobileprovision PROVISIONING_PROFILES=~/Library/MobileDevice/Provisioning\ Profiles mkdir -pv "${PROVISIONING_PROFILES}" cd "${PROVISIONING_PROFILES}" - echo ${IOS_SIGN_KEY} >> cert.txt + echo ${IOS_SIGN_KEY_2022} >> cert.txt base64 --decode cert.txt -o ${PROFILE} rm cert.txt - run: @@ -537,7 +538,7 @@ command: | set -e PROJ_ROOT=/Users/distiller/project - PROFILE=PyTorch_CI_2021 + PROFILE=PyTorch_CI_2022 # run the ruby build script if ! [ -x "$(command -v xcodebuild)" ]; then echo 'Error: xcodebuild is not installed.' diff --git a/ios/TestApp/AppleWWDRCAG3.cer b/ios/TestApp/AppleWWDRCAG3.cer new file mode 100644 index 0000000000000000000000000000000000000000..32f96f81dd6ea4c1c0f8e84698a50df773444b83 GIT binary patch literal 1109 zcmXqLVhJ>8Vzyks%*4pVBv7+HlS_5G<-h9LE>#CBj=nSCW#iOp^Jx3d%gD&h%3zRW z$Zf#M#vIDRCd?EXY$$9X2;y)Fb2%0iH*zq6|t6T@0MSI(e)iI>Ymea#G4OQ&JUNQp-|v@(WUn6oOK7z!nxO;Ibd;6K){o*(MkVCXU}R-rZerwT0E%-lH8CYLni>cB0Y1I-s6|D1SjdC!T1#gEpxT}+xg zX~l#D^V*DQXL}#~nf!ynzs^Bts5HBBM?YUi*LCU=8QrPsRL7p`U7PH?oF*7nSE^d5p z(D=qc2pB!G!ijc@}j8RRiS(iVNi1WT9Gi4Pg$!gt>iJm2SVTDg9T1)HbA1Ze zB%z&Z8p%A<-z?u`zz34%2l<2rm_yhM1lYL1`5`%ljfs(k3792Na|kd^Ffy!76@KyU zL1VcKle^Qt_@$N#uaZ{&Jv!lJvGCP-voEaT@9jPPmhpU!hC}r6P!-1?f6gD=s{HcK zn~(XY8f4249ZB?5O<&J{%2IXh<;PWLj5T=q^cIFY6#se_vyLrL^X=nS9{G!0~pME4H^8F=`FYGft6Cx##-<@*tz`>mQ3dQ$4 zudQ=tHhBjnSZuXy%6$`L7`%^vqK~I%N&m9I(=G0PvZd;Idw*Vv`CNY}hnv&vQOc7; z=FB3JS6^jKS+(-^zi+cR(!1Yl?^q@7*}VSz={+ycznWUOVT