File tree Expand file tree Collapse file tree 2 files changed +40
-4
lines changed
Expand file tree Collapse file tree 2 files changed +40
-4
lines changed Original file line number Diff line number Diff line change @@ -214,11 +214,31 @@ jobs:
214214 - name : 运行代码生成器
215215 run : dart run build_runner build
216216
217- - name : 编译IPA (不签名)
218- run : flutter build ipa --release --no-codesign
217+ - name : 准备iOS构建 (不签名)
218+ run : flutter build ios --release --no-codesign
219219
220- - name : 上传IPA到工作流程
220+ - name : 创建 .xcarchive (不签名)
221+ run : |
222+ cd ios
223+ xcodebuild archive \
224+ -workspace Runner.xcworkspace \
225+ -scheme Runner \
226+ -configuration Release \
227+ -archivePath ../build/ios/archive/Runner.xcarchive \
228+ CODE_SIGNING_ALLOWED=NO \
229+ CODE_SIGNING_REQUIRED=NO \
230+ CODE_SIGN_IDENTITY="" \
231+ EXPANDED_CODE_SIGN_IDENTITY=""
232+
233+ - name : 导出未签名的 IPA
234+ run : |
235+ xcodebuild -exportArchive \
236+ -archivePath build/ios/archive/Runner.xcarchive \
237+ -exportPath build/ios/ipa \
238+ -exportOptionsPlist ios/ExportOptions.plist
239+
240+ - name : 上传未签名的 IPA 到工作流程
221241 uses : actions/upload-artifact@v4
222242 with :
223- name : build-ios-unsigned
243+ name : build-ios-unsigned-ipa
224244 path : build/ios/ipa/*.ipa
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+ <plist version =" 1.0" >
4+ <dict >
5+ <key >method </key >
6+ <string >ad-hoc </string >
7+ <key >signingStyle </key >
8+ <string >manual </string >
9+ <key >signingCertificate </key >
10+ <string ></string >
11+ <key >provisioningProfiles </key >
12+ <dict />
13+ <key >compileBitcode </key >
14+ <false />
15+ </dict >
16+ </plist >
You can’t perform that action at this time.
0 commit comments