Swift.ignore 备忘

一、常规ignore配置

详细: GitHub - github/gitignore: A collection of useful .gitignore templates

## User settings
xcuserdata/

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

二、相关问题(SwiftUI 项目project.pbxproj未成功推送远端)

      新建的Vision Pro项目提交git仓库后,再下载打开,提示missing it's project.pbxproj file (XXX.xcodeproj cannot be opened because it is missing it)

      原因:公司大仓库ignore文件给过滤

      排查:

  •  确认项目文件完整性(是否包含project.pbxproj)
  • 查看Git状态(git status,查看project.pbxproj文件是否被跟踪)
  • 若没有,将project.pbxproj文件手动添加到Git仓库(git add提示ignore忽略,强制加入 git add -f )
  • 6
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值