ios – How do I make my app both maintainable and expandable?


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.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img