这种问题现在( 2022 年初)大家有什么比较成熟的 best practice 么?
https://github.com/microsoft/react-native-macos/commit/0e4107c9dd1b0b30a49df924dc61c20956ae095c
用一个 GitHub Action 在每次 push/merge 到 main/master 的时候自动替换这一行?
这种问题现在( 2022 年初)大家有什么比较成熟的 best practice 么?
https://github.com/microsoft/react-native-macos/commit/0e4107c9dd1b0b30a49df924dc61c20956ae095c
用一个 GitHub Action 在每次 push/merge 到 main/master 的时候自动替换这一行?
|
1
团队使用 fastlane match 或许可以,GitHub Action 也使用 fastlane 管理
https://docs.fastlane.tools/actions/match/ |
|
2
codereview ?
或者把 xcode 项目文件 ignore 了,用这类工具生成 https://github.com/yonaskolb/XcodeGen 或者 pbxproj 里不管,ci 里用单独的 xcconfig 文件覆盖部分配置 |
|
3
目前在用 Xcodegen
|
|
4
xcodebuild 时直接覆盖 DEVELOPMENT_TEAM 也行
|
|
5
https://stackoverflow.com/a/40424891
不知这个方案是否还有效 |
|
6
可以用 xcconfig
|
|
PPing520Jan 14, 2022
7
构建时覆盖就好
|
|
yongSirJan 14, 2022
8
一直在用 Xcodegen
|
|
ooopsJan 14, 2022 via iPhone
9
pipeline 里面检查
|
|
ooopsJan 14, 2022 via iPhone
10
接受不了这个 commit 合入,提前拦截
|
|
xy90321Jan 14, 2022 via iPhone
11
粗暴一点就定在 coding rule 里,抓到罚钱或者请全组下午茶
|
|
xtinputJan 14, 2022
12
手动签名?或者所有人都拉入同一个组织
|
|
13
|
|
icodesignJan 17, 2022
14
所有 Build Settings 的里面的都可以用 xcconfig 覆盖
|
|
hzlzhJan 18, 2022
15
我是手动导出-导入一次证书,后续 git diff 就没了
|
|
yoyoyoyololMar 29, 2022
16
手动管理证书,团队成员使用同一个导出的证书
|
|
17
同 xcconfig 方案,补充一下,如果你的构建目标比较多的话,可以参考一下 NNW 项目的设置 https://github.com/Ranchero-Software/NetNewsWire
|