Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(mobile/ios): archive 关闭 Explicitly Built Modules 规避 WechatOpenSDK 解析失败 (#293)

guyong-zapo6930e54ea9d8
diff --git a/apps/mobile/scripts/build-ios.mjs b/apps/mobile/scripts/build-ios.mjs
index 8a293acbfe..cc49a4979c 100644
--- a/apps/mobile/scripts/build-ios.mjs
+++ b/apps/mobile/scripts/build-ios.mjs
@@ -161,6 +161,10 @@ function buildIpa(env, region) {
'-archivePath', archivePath, '-sdk', 'iphoneos', 'archive',
'CODE_SIGN_STYLE=Manual', `DEVELOPMENT_TEAM=${sign.teamId}`,
`PROVISIONING_PROFILE_SPECIFIER=${sign.profileName}`, `CODE_SIGN_IDENTITY=${sign.identity}`,
+ // Xcode 26 默认开 Explicitly Built Modules,冷构建下 Swift 预扫描解析不到
+ // WechatOpenSDK(post_install 临时落位的手写 modulemap),报 unable to resolve
+ // module dependency。回退隐式模块构建规避(命令行 override,不进包/不影响 fingerprint)。
+ 'SWIFT_ENABLE_EXPLICIT_MODULES=NO', 'CLANG_ENABLE_EXPLICIT_MODULES=NO',
], { env });
run('xcodebuild', ['-exportArchive', '-archivePath', archivePath, '-exportOptionsPlist', plistPath, '-exportPath', exportDir], { env });