1

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

tHatpart
  • 1,302
  • 3
  • 12
  • 27

3 Answers3

2

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

timbre timbre
  • 12,648
  • 10
  • 46
  • 77
1

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

Iskandir
  • 937
  • 1
  • 9
  • 21
  • what would I put in the gitignore file to avoid the changes above? – tHatpart Aug 12 '22 at 13:08
  • you should but all files and pattern in your .gitignore that are generated by your build system. You ask yourself what files those are, right? Typically you'll see them when you do some code submits on your project. You'll see some files will pop up again and again. Those are your build system-files. – Iskandir Aug 13 '22 at 10:40
1

The issue is with iCloud sync, try turning that off

Noah Iarrobino
  • 1,435
  • 1
  • 10
  • 31