0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【iOS個人開発備忘録】Xcode × Source Tree 環境構築

Last updated at Posted at 2025-06-16

準備

必要なアカウント

  • Apple Account
  • GitHub

インストールと初期設定

基本的には最初の1度だけ。
アカウント、トークン等に更新があれば再度設定。

  • homebrew参考
    1. インストールコマンド(要パスワード)
    2. pathを通すコマンド
    3. brew helpでインストールを確認
  • Xcode:App Storeまたは「Xcodes」から
    • Xcode > Settings... > AccountsからApple Accountを連携
    • 上と同じ画面からGitHubを連携
    • Xcode > Settings... > Source Controlから名前(コミット時の表示)とEメールを入力
  • Source Tree参考
    • GitHubアカウントをPersonal Access Token,プロトコルHTTPSで連携:参考1,参考2

つくる

新しいアプリ(プロジェクト)をつくるたびに実行。

  1. Create New Project...から進めていき、Create Git repository on my Macにチェック。
    (プロジェクトと同時にローカルリポジトリが作られる)
    スクリーンショット 2025-06-16 11.55.57.png
  2. Source Treeでローカルリポジトリを読み込む
  3. ナビゲーターエリアのソースコントロールナビからRepositories > Remotesを右クリックし > New”プロジェクト名”Remote…を選択。(リモートリポジトリが作られる)

これで差分が管理されるようになるので、必要に応じて

  • ブランチ作成
  • コミット
  • プッシュ

リリースする

準備中

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?