tHatpart
tHatpart

Reputation: 1136

Random Xcode files are modified/added/deleted in Git

I am using Github desktop to source control my app, but it keeps changing/deleting/adding all sorts of files that I did not touch, assets, pod files, and I do not know what is going on or how to stop it. Any help here?

I re-cloned my repo and still having the issue

enter image description here

enter image description here

Upvotes: 2

Views: 368

Answers (3)

Noah Iarrobino
Noah Iarrobino

Reputation: 1553

The issue is with iCloud sync, try turning that off

Upvotes: 3

Apix_D
Apix_D

Reputation: 1101

like sfgblackwarkrts already said these "random" files are artefacts, pods etc. They will be created everytime you made any changes in one of them E.g. updating your pods, changing packages,..

To see how a .gitignore file can be created and managed, you can find a question and the correct answers to it on Stackoverflow.

git - how to create a .gitignore file

Upvotes: 1

timbre timbre
timbre timbre

Reputation: 13980

They are build artefacts, Pods, and other things you should've excluded from your repo. Use gitignore.io to create a proper .gitignore file, and add it to root folder of your repo (e.g. like this). Then delete all this junk from your repo.

I also recommend reading Apple's guide on working with Source Control

Upvotes: 2

Related Questions