这种问题现在( 2022 年初)大家有什么比较成熟的 best practice 么?
https://github.com/microsoft/react-native-macos/commit/0e4107c9dd1b0b30a49df924dc61c20956ae095c
用一个 GitHub Action 在每次 push/merge 到 main/master 的时候自动替换这一行?
![]() | 1 kera0a 2022-01-14 12:53:08 +08:00 ![]() 团队使用 fastlane match 或许可以,GitHub Action 也使用 fastlane 管理 https://docs.fastlane.tools/actions/match/ |
![]() | 2 Qusic 2022-01-14 14:52:27 +08:00 via iPhone ![]() codereview ? 或者把 xcode 项目文件 ignore 了,用这类工具生成 https://github.com/yonaskolb/XcodeGen 或者 pbxproj 里不管,ci 里用单独的 xcconfig 文件覆盖部分配置 |
![]() | 3 Lin0936 2022-01-14 14:53:43 +08:00 ![]() 目前在用 Xcodegen |
4 ai277014717 2022-01-14 15:41:36 +08:00 ![]() xcodebuild 时直接覆盖 DEVELOPMENT_TEAM 也行 |
5 hstdt 2022-01-14 18:09:13 +08:00 via iPhone ![]() https://stackoverflow.com/a/40424891 不知这个方案是否还有效 |
![]() | 6 icodesign 2022-01-14 19:01:28 +08:00 ![]() 可以用 xcconfig |
![]() | 7 PPing520 2022-01-14 19:01:54 +08:00 构建时覆盖就好 |
![]() | 8 yongSir 2022-01-14 19:04:29 +08:00 一直在用 Xcodegen |
![]() | 9 ooops 2022-01-14 19:33:45 +08:00 via iPhone pipeline 里面检查 |
![]() | 10 ooops 2022-01-14 19:34:03 +08:00 via iPhone 接受不了这个 commit 合入,提前拦截 |
11 xy90321 2022-01-14 20:05:07 +08:00 via iPhone 粗暴一点就定在 coding rule 里,抓到罚钱或者请全组下午茶 |
![]() | 12 xtinput 2022-01-14 20:13:43 +08:00 手动签名?或者所有人都拉入同一个组织 |
![]() | 13 Livid MOD OP PRO @icodesign 谢谢。 这个方案看起来确实不错: https://samwize.com/2020/11/20/using-xcconfig-to-configure-to-your-developer-account/ < target="_blank" href="https://github.com/fabio914/RealityMixer/pull/21/commits/e3dab68a1aa33c9a5754584e5f89bbca23d79a29" rel="nofollow noopener">https://github.com/fabio914/RealityMixer/pull/21/commits/e3dab68a1aa33c9a5754584e5f89bbca23d79a29 |
![]() | 14 icodesign 2022-01-17 12:51:37 +08:00 所有 Build Settings 的里面的都可以用 xcconfig 覆盖 |
![]() | 15 hzlzh PRO 我是手动导出-导入一次证书,后续 git diff 就没了 |
![]() | 16 yoyoyoyolol 2022-03-29 09:28:18 +08:00 手动管理证书,团队成员使用同一个导出的证书 |
17 ricco 2022-03-30 12:17:24 +08:00 ![]() 同 xcconfig 方案,补充一下,如果你的构建目标比较多的话,可以参考一下 NNW 项目的设置 https://github.com/Ranchero-Software/NetNewsWire |