From 737dcf82fedf3182ab0d02e9e0e9b5305ab412e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Mon, 30 Mar 2026 15:19:34 +0800 Subject: [PATCH] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E=E5=90=89?= =?UTF-8?q?=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82=5F=E5=AE=8C=E5=96=84=E4=BB=A3=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile-ios | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile-ios b/Jenkinsfile-ios index cb5d1b2a..e540e4a7 100644 --- a/Jenkinsfile-ios +++ b/Jenkinsfile-ios @@ -196,15 +196,17 @@ pipeline { stage('🚀 验证并上传 TestFlight') { steps { echo "✅ 开始验证 IPA 有效性" - + sh ''' + mkdir -p $HOME/private_keys + cp -f "${P8_FILE}" $HOME/private_keys/ + ''' // 1. 先验证 IPA(必须这一步,提前拦截错误) sh """ xcrun altool --validate-app \\ --file ${APP_DIR}/build/${SCHEME_NAME}.ipa \\ --type ${API_TYPE} \\ --apiKey ${API_KEY} \\ - --apiIssuer ${API_ISSUER} \\ - --keyPath ${P8_FILE} + --apiIssuer ${API_ISSUER} """ echo "✅ IPA 验证成功!开始上传到 TestFlight"