iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
Livid
403.84D
562.84D
V2EX  ›  iDev

多人协作的 Swift 项目中,如何避免 Git 里 project.pbxproj 里的 DEVELOPMENT_TEAM 的值被覆盖?

  •  
  •   Livid ·
    PRO
    · Jan 14, 2022 · 20238 views
    This topic created in 1755 days ago, the information mentioned may be changed or developed.

    这种问题现在( 2022 年初)大家有什么比较成熟的 best practice 么?

    https://github.com/microsoft/react-native-macos/commit/0e4107c9dd1b0b30a49df924dc61c20956ae095c

    用一个 GitHub Action 在每次 push/merge 到 main/master 的时候自动替换这一行?

    Supplement 1  ·  Mar 29, 2022
    后来我们在项目里用增加 xcconfig 文件的方式解决了这个问题:

    https://cl.v2ex.pro/blog/20220119-xcconfig/
    17 replies  •  2022-03-30 12:17:24 +08:00
    kera0a
    kera0a
    Jan 14, 2022❤️2
    1
    团队使用 fastlane match 或许可以,GitHub Action 也使用 fastlane 管理
    https://docs.fastlane.tools/actions/match/
    Qusic
    Qusic
    Jan 14, 2022 via iPhone❤️1
    2
    codereview ?
    或者把 xcode 项目文件 ignore 了,用这类工具生成 https://github.com/yonaskolb/XcodeGen
    或者 pbxproj 里不管,ci 里用单独的 xcconfig 文件覆盖部分配置
    ezrealinxh
    ezrealinxh
    Jan 14, 2022❤️1
    3
    目前在用 Xcodegen
    ai277014717
    ai277014717
    Jan 14, 2022❤️1
    4
    xcodebuild 时直接覆盖 DEVELOPMENT_TEAM 也行
    hstdt
    hstdt
    Jan 14, 2022 via iPhone❤️1
    5
    https://stackoverflow.com/a/40424891
    不知这个方案是否还有效
    icodesign
    icodesign
    Jan 14, 2022❤️1
    6
    可以用 xcconfig
    PPing520
    PPing520
    Jan 14, 2022
    7
    构建时覆盖就好
    yongSir
    yongSir
    Jan 14, 2022
    8
    一直在用 Xcodegen
    ooops
    ooops
    Jan 14, 2022 via iPhone
    9
    pipeline 里面检查
    ooops
    ooops
    Jan 14, 2022 via iPhone
    10
    接受不了这个 commit 合入,提前拦截
    xy90321
    xy90321
    Jan 14, 2022 via iPhone
    11
    粗暴一点就定在 coding rule 里,抓到罚钱或者请全组下午茶
    xtinput
    xtinput
    Jan 14, 2022
    12
    手动签名?或者所有人都拉入同一个组织
    icodesign
    icodesign
    Jan 17, 2022
    14
    所有 Build Settings 的里面的都可以用 xcconfig 覆盖
    hzlzh
    hzlzh
    Jan 18, 2022
    15
    我是手动导出-导入一次证书,后续 git diff 就没了
    yoyoyoyolol
    yoyoyoyolol
    Mar 29, 2022
    16
    手动管理证书,团队成员使用同一个导出的证书
    ricco
    ricco
    Mar 30, 2022❤️2
    17
    同 xcconfig 方案,补充一下,如果你的构建目标比较多的话,可以参考一下 NNW 项目的设置 https://github.com/Ranchero-Software/NetNewsWire
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2734 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 14:39 · PVG 22:39 · LAX 06:39 · JFK 09:39
    ♥ Do have faith in what you're doing.