iOS开发实战-仿小红书App开发-1-App创建与Git

news/2024/7/20 21:25:35 标签: ios, git

1.新建项目

 2.添加Git仓库

 添加自己的gitHub账号.

 3.Token获取方式:

 Settings.

 Developer Settings.

 获取个人Token.

 填写相关内容.

得到Token后复制它,拿到Xcode中登录.

 填写相关信息.

 创建后打开GitHub,查看自己的所有仓库,发现小粉书仓库已创建成功!

 4.创建名为.gitignore的文稿,将GitHub的.gitignore粘贴进去.

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## 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/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

按下commond+shift+句号,显示隐藏的.gitignore文件,将它拖入Xcode中.

 进行一次提交.

 查看发现提交成功.


http://www.niftyadmin.cn/n/5034787.html

相关文章

Linux 信号捕捉函数 signal sigaction

signal函数 #include <signal.h> typedef void (*sighandler_t)(int); sighandler_t signal(int signum, sighandler_t handler); 功能&#xff1a;设置某个信号的捕捉行为 参数&#xff1a; -signum&#xff1a;要捕捉的信号 handler&#xff1a;对捕捉到的信号怎么处理…

域名解析--nslookup和dig

dig (Domain Information Groper) dig 是一个功能强大且更灵活的 DNS 查询工具&#xff0c;通常在 Linux 和 macOS 等 Unix-like 操作系统上使用。以下是 dig 的一些常见用法和区别&#xff1a; 查询域名信息 dig example.com这将返回与指定域名相关的 DNS 记录&#xff0c;…

计算机毕设 flink大数据淘宝用户行为数据实时分析与可视化

文章目录 0 前言1、环境准备1.1 flink 下载相关 jar 包1.2 生成 kafka 数据1.3 开发前的三个小 tip 2、flink-sql 客户端编写运行 sql2.1 创建 kafka 数据源表2.2 指标统计&#xff1a;每小时成交量2.2.1 创建 es 结果表&#xff0c; 存放每小时的成交量2.2.2 执行 sql &#x…

vue入门-->前后端分离vue简介,vue入门,vue生命周期

前后端分离&vue简介vue入门vue生命周期 1.前后端分离&vue简介 什么是前后端分离&#xff1f; 前后端分离&#xff0c;是开发模式上的前后端分离。 当然还有项目架构方面的前后端分离&#xff0c;也就是在考虑请求并发&#xff0c;服务器性能&#xff0c;处理请求的效率…

python生成PDF报告

前言 最近接到了一个需求-将项目下的样本信息汇总并以PDF的形式展示出来&#xff0c;第一次接到这种PDF的操作的功能&#xff0c;还是有点慌的&#xff0c;还好找到了reportlab这个包&#xff0c;可以定制化向PDF写内容&#xff01; 让我们由简入深进行讲解 一、reportlab是…

【2023年11月第四版教材】第13章《资源管理》(第二部分)

第13章《资源管理》&#xff08;第部分&#xff09; 3 管理过程3.1 管理ITTO汇总★★★ 3 管理过程 组 过程 定义 作用规划 1 .规划资源管理定义如何估算、获取、管理和利用团队以及实物资源的过程根据项目类型和复杂程度确定适用于项目资源的管理方法和管理程度2 .估算活动资源…

蓝桥杯打卡Day11

文章目录 最长上升子序列最长上升子序列II 一、最长上升子序列IO链接 本题思路:本题是一关于dp问题中的一个类型是最长上升子序列问题&#xff0c;首先我们将状态表示出来&#xff1a;f[i]表示以a[i]结尾的最大的上升序列。状态计算&#xff08;集合划分&#xff09;&#xf…

Python 有哪些流行的开发框架和库?

Python是一种高级编程语言&#xff0c;由于其简单易学、灵活性强等特点&#xff0c;成为了近年来非常流行的编程语言之一。Python的库和框架数量繁多&#xff0c;使其具有极高的灵活性和适用性&#xff0c;广泛应用于Web开发、数据分析、人工智能等领域。 一、Web框架 1、Dja…