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
279.77D
567.9D
V2EX  ›  iDev

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

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