iOS

[M1 Mac] XCODE(12.5.1) ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ํ›„ Git ์—ฐ๋™

natrue 2021. 7. 18. 23:08
728x90

 

1. project ์ƒ์„ฑํ•˜๊ธฐ

 

Choose options for your new project :

iOS - APP - Next

Product Name ํ”„๋กœ์ ํŠธ์— ์‚ฌ์šฉํ•  ์ œ๋ชฉ์„ ์ž…๋ ฅ
Team ์• ํ”Œ ๊ฐœ๋ฐœ์ž ๊ณ„์ •์„ ์„ ํƒ / ์—†๋‹ค๋ฉด ๋น„์›Œ๋‘์ž.
Organization Identifier ํšŒ์‚ฌ๋ช… / ์•„๋ฌด๊ฑฐ๋‚˜ ์ž…๋ ฅ ๊ฐ€๋Šฅ.
Interface StoryBoard
Language swift
Use Core Data ๊ผญ ์ฒดํฌ ํ•˜์ž.

์œ„ ํ‘œ๋Œ€๋กœ ์ž…๋ ฅ, ์„ ํƒ ํ›„ - Next

ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•  ํด๋” ์„ ํƒ ํ›„

Create Git repository on my Mac - ์ฒดํฌ

 

2. github ์—ฐ๋™ํ•˜๊ธฐ

Xcode - Preferences

Accounts - (+) - GitHub - Continue

 

3. github์—์„œ tocken ๊ฐ’ ๋ฐ›๊ธฐ

github signIn ํ›„ - Settings - Developer settings ํด๋ฆญ.

 

 

Note ์ž…๋ ฅ ๋ฐ Select scopes ์ฒดํฌ - Generate tocken

tocken ๋ณต์‚ฌ ํ›„ Xcode์— ๋ถ™์—ฌ ๋„ฃ๊ธฐ - Sign In

GitHub ๊ณ„์ • ์—ฐ๋™ ์™„๋ฃŒ.

 

4. Xcode์™€ GitHub ์ €์žฅ์†Œ ์—ฐ๊ฒฐ

์ƒ์„ฑํ•œ ํ”„๋กœ์ ํŠธ ํด๋ฆญ - New "ํ”„๋กœ์ ํŠธ ๋ช…" Remote ํด๋ฆญ

 

Repository Name ์ž…๋ ฅ - Visibility ์„ ํƒ - Create

Private Private๋ฅผ ์„ ํƒํ•˜๋ฉด ์†Œ์œ ์ฃผ ํ˜น์€ ํ˜‘์—…ํ•˜๋Š” ์‚ฌ๋žŒ๋งŒ ์ €์žฅ์†Œ๋ฅผ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.
Public Public์„ ์„ ํƒํ•˜๋ฉด ์ „์„ธ๊ณ„์˜ ๋ชจ๋“  ์‚ฌ๋žŒ๋“ค์ด ๋‚˜์˜ ์ฝ”๋“œ๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์‹ฌ์ง€์–ด ์ฝ”๋“œ๋ฅผ ๊ฐœ์„ ํ•ด์„œ ์˜ฌ๋ฆด์ˆ˜๋„ ์žˆ๋‹ค.














์ฐธ๊ณ  : https://devbono.com/xcode-github-sync/

 

Xcode ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค๊ณ  Github์— ์—ฐ๋™ํ•˜๊ธฐ - ๋ฐ๋ธŒ๋ณด๋…ธ์˜ ๋ธ”๋กœ๊ทธ

Xcode์™€ Github ์—ฐ๋™ํ•˜๋Š”๋ฒ•

devbono.com