File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,6 +136,16 @@ jobs:
136136 with :
137137 ref : ${{ needs.check-version-update.outputs.tag }}
138138
139+ - name : Create .env.production file
140+ run : |
141+ set -Eeuo pipefail
142+ if [ -z "${{ secrets.ENV_MAIN }}" ]; then
143+ echo "❌ ENV_MAIN is empty"
144+ exit 1
145+ fi
146+ echo -e "${{ secrets.ENV_MAIN }}" > .env.production
147+ echo "✅ .env.production created"
148+
139149 - name : 🧰 Setup Node.js
140150 uses : actions/setup-node@v4
141151 with :
@@ -357,6 +367,10 @@ jobs:
357367 /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VERSION" "$PLIST"
358368 /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BUILD_NUMBER" "$PLIST"
359369
370+ # Export Compliance(암호화) 플래그
371+ /usr/libexec/PlistBuddy -c "Add :ITSAppUsesNonExemptEncryption bool false" "$PLIST" 2>/dev/null \
372+ || /usr/libexec/PlistBuddy -c "Set :ITSAppUsesNonExemptEncryption false" "$PLIST"
373+
360374 - name : 🔐 Setup iOS signing
361375 env :
362376 P12_BASE64 : ${{ secrets.IOS_CERT_P12_BASE64 }}
Original file line number Diff line number Diff line change 4444 IOS_BUNDLE_ID : " com.example.app"
4545
4646 # fastlane 버전 고정 (원하는 버전으로 조정)
47- FASTLANE_VERSION : " 2.219.0" # fastlane 버전 고정(안정성)
47+ FASTLANE_VERSION : " 2.231.1" # fastlane 버전 고정(안정성)
48+
49+ # Export Compliance 답변
50+ # true = non-exempt encryption 사용
51+ # false = non-exempt encryption 미사용 (면제 케이스)
52+ IOS_USES_NON_EXEMPT_ENCRYPTION : " false"
4853
4954jobs :
5055 resolve_inputs :
@@ -247,7 +252,12 @@ jobs:
247252 run : |
248253 set -Eeuo pipefail
249254
250- fastlane pilot upload \
251- --api_key_path "$ASC_API_KEY_INFO" \
252- --ipa "$IPA_PATH" \
253- --changelog "$CHANGELOG"
255+ # BuildWatcher(대기)로 인한 중복 매칭 에러 회피
256+ # - uses_non_exempt_encryption: Export Compliance 질문 자동 처리
257+ # - skip_waiting_for_build_processing: 업로드 후 처리 완료까지 대기 스킵
258+ fastlane run upload_to_testflight \
259+ api_key_path:"$ASC_API_KEY_INFO" \
260+ ipa:"$IPA_PATH" \
261+ changelog:"$CHANGELOG" \
262+ uses_non_exempt_encryption:${IOS_USES_NON_EXEMPT_ENCRYPTION} \
263+ skip_waiting_for_build_processing:true
You can’t perform that action at this time.
0 commit comments