Skip to content

Commit ff0f8f3

Browse files
committed
FIX: 补齐 iOS prod flavor 构建配置
1 parent ca5aa86 commit ff0f8f3

6 files changed

Lines changed: 24 additions & 3 deletions

File tree

TASKS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ PostHog 自动事件 `Application Opened` 不带任何系统授权属性,无
7171

7272
## 录音+识别功能(进行中)
7373

74+
- [x] **修复 iOS `prod` flavor release 构建配置**
75+
76+
**完成时间**: 2026-06-15 18:38 +0800
77+
78+
补齐 `prod` flavor 的 iOS 构建链路,避免 `flutter run --release --flavor prod` 在 Flutter 26 / Xcode 26 下丢失 `TARGET_BUILD_DIR`
79+
- `ios/Podfile` 增加 `Debug-prod` / `Release-prod` 到 CocoaPods 配置映射
80+
- 新增 `ios/Flutter/Debug-prod.xcconfig``ios/Flutter/Release-prod.xcconfig`
81+
- `ios/Runner.xcodeproj/project.pbxproj``Debug-prod` / `Release-prod` 绑定到对应 flavor xcconfig
82+
- 重新执行 `pod install` 同步 Pods flavor 配置
83+
- 验证 `xcodebuild -workspace Runner.xcworkspace -scheme prod -configuration Release-prod -showBuildSettings` 可正常输出 `TARGET_BUILD_DIR`
84+
7485
- [x] **段落复述评级开关**
7586

7687
**完成时间**: 2026-06-15 16:04 +0800

ios/Flutter/Debug-prod.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-prod.xcconfig"
2+
#include "Generated.xcconfig"

ios/Flutter/Release-prod.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-prod.xcconfig"
2+
#include "Generated.xcconfig"

ios/Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ project 'Runner', {
88
'Debug' => :debug,
99
'Profile' => :release,
1010
'Release' => :release,
11+
'Debug-prod' => :debug,
12+
'Release-prod' => :release,
1113
}
1214

1315
def flutter_root

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,6 @@ SPEC CHECKSUMS:
422422
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
423423
wakelock_plus: e29112ab3ef0b318e58cfa5c32326458be66b556
424424

425-
PODFILE CHECKSUM: 70f5c0e68c409464e3f40aaa1da2ef0010c0b024
425+
PODFILE CHECKSUM: 1ada93970e280f9c70e826efc50f49c004438275
426426

427427
COCOAPODS: 1.16.2

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
74C80C892DBFB94900E0F060 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
6262
74C80C8B2DBFB96B00E0F060 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
6363
760CFBF4116266D85F7D6C7A /* Pods-Runner.debug-prod.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-prod.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-prod.xcconfig"; sourceTree = "<group>"; };
64+
7A16A2E95A6B4F4091D7A230 /* Debug-prod.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Debug-prod.xcconfig"; path = "Flutter/Debug-prod.xcconfig"; sourceTree = "<group>"; };
6465
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
66+
8FA81F0DB6E24B6E9F984D2B /* Release-prod.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Release-prod.xcconfig"; path = "Flutter/Release-prod.xcconfig"; sourceTree = "<group>"; };
6567
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
6668
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
6769
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -125,7 +127,9 @@
125127
children = (
126128
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
127129
9740EEB21CF90195004384FC /* Debug.xcconfig */,
130+
7A16A2E95A6B4F4091D7A230 /* Debug-prod.xcconfig */,
128131
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
132+
8FA81F0DB6E24B6E9F984D2B /* Release-prod.xcconfig */,
129133
9740EEB31CF90195004384FC /* Generated.xcconfig */,
130134
);
131135
name = Flutter;
@@ -786,7 +790,7 @@
786790
};
787791
6421BDC31E9940158003FA33 /* Release-prod */ = {
788792
isa = XCBuildConfiguration;
789-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
793+
baseConfigurationReference = 8FA81F0DB6E24B6E9F984D2B /* Release-prod.xcconfig */;
790794
buildSettings = {
791795
APP_DISPLAY_NAME = "Echo Loop";
792796
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
@@ -1143,7 +1147,7 @@
11431147
};
11441148
D4ACA9420A334162838509B6 /* Debug-prod */ = {
11451149
isa = XCBuildConfiguration;
1146-
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
1150+
baseConfigurationReference = 7A16A2E95A6B4F4091D7A230 /* Debug-prod.xcconfig */;
11471151
buildSettings = {
11481152
APP_DISPLAY_NAME = "Echo Loop";
11491153
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;

0 commit comments

Comments
 (0)