-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
45 lines (44 loc) · 1.76 KB
/
Copy pathcodemagic.yaml
File metadata and controls
45 lines (44 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Codemagic CI —— Target iOS 未签名构建(与 hello_ios 已验证回路一致)。
#
# 流程:Codemagic 手动触发 → 出 unsigned.ipa → 本地 iLoader 自签 → 实机验证。
# 不配置 App Store Connect 密钥/签名/TestFlight —— 那条链路需要付费开发者
# 账号与 APP_STORE_CONNECT_* 三个加密变量(自动签名 + 自动分发专用),
# 未签名自签流程完全用不到。
#
# 注意:App Group(group.com.target.shared)能否生效取决于本地自签证书——
# 免费 Apple ID 证书不支持 App Groups,小组件将读不到共享数据(呈现空态)。
workflows:
ios-unsigned:
name: iOS 未签名包
instance_type: mac_mini_m2
max_build_duration: 60
environment:
flutter: 3.47.0
xcode: latest
cocoapods: default
scripts:
- name: 强制 CocoaPods 路线(本项目小组件扩展依赖 pod 链接 home_widget)
script: |
flutter config --no-enable-swift-package-manager
- name: 依赖获取
script: |
flutter pub get
- name: 静态分析
script: |
flutter analyze
- name: 单元测试(统计引擎 R1–R9 / 备份 / 频率版本口径)
script: |
flutter test
- name: 构建未签名 archive(含 TargetWidgets 小组件扩展)
script: flutter build ipa --release --no-codesign
- name: 组装未签名 ipa
script: |
set -e
mkdir -p /tmp/Payload
cp -R "$CM_BUILD_DIR"/build/ios/archive/*.xcarchive/Products/Applications/*.app /tmp/Payload/
cd /tmp
rm -f "$CM_BUILD_DIR/unsigned.ipa"
zip -r "$CM_BUILD_DIR/unsigned.ipa" Payload
artifacts:
- unsigned.ipa
- /tmp/xcodebuild_logs/*.log