Okay, so I have my first app out on the App Store that I’ve slowly been adding to with monthly updates; however, lately I have encountered an issue where I keep accidentally uploading versions of the app that I modified for development and bug testing. Is there a way to structure my code or tools that I can use to make these accidents less common?
I’ve tried just hard coding simple bool statements with their variables stored on one file. I was expecting this to make toggling on and off my Dev settings as easy as can be; however, it makes my code look messy and it makes me have to write three times the code just to do the same thing.
I’ve been shown XCTestCases, but they just don’t make sense to me to bother learning for my uses. The code is supposed to work all together, so what use is testing a bit of it when the issue is how it works with the rest of the code?
I’ve also tried print statements but with the sizes of my classes those quickly become overwhelming, and I keep adding stuff to my code so I would need to update any print functions. I imagine it would double my work with me having need to debug both the code itself and their print statements.
This is my first app so I would appreciate some explanation behind tools before they are suggested to me.
I use GitHub branches, but they worry me. I get circular dependencies a lot (at least before the latest update). I don’t know why but it seems to be when I merge two branches, with one being where I may have added or deleted files. I don’t really know how to fix them so usually I just have to jump on another branch or stash changes which gets messy.




