I am new to app development and needed an idea of what all I need to do to avoid decoding of my code once my app is uploaded on App Store. I have a simple Sudoku app with no backend on a server or cloud. I am neither authenticating the user because there is no user sensitive data I am storing. There is neither third party library involved. With all this - will my code be ‘safe’ if uploaded my app on App Store or malicious actors will be able to decode and place my app on third party websites without my permission ? Should I make a backend on a server or cloud and authenticate the user to avoid the above issue. Or will my current app that essentially involves a sudoku generator, solver and UI - all the code within the users phone that too without authenticating the user will not lead to the above issue ?
How to best secure your app while making for App Store
Welcome to the forum.
If someone want to develop a Sudoku app, he will not try to decompile yours. He will do it directly. In fact there are already a lot of such apps on the store.
So don't worry and spend time on useless code obfuscation techniques; make a good appealing app, with attractive features to users, making best use of iOS capabilities, and that's it.
What I am exactly trying to imply here - like in android with a simple tool one can repackage the entire code and upload elsewhere and the original developer doesn’t make any money because it is with the click of a button that repackaging is done. Is there a similar issue on App Store ? My app will be a paid one and it will be the first app that offers a sudoku generator for 12 different varieties of sudoku - the code for which is not available else where.
Short answer: this is considerably harder on iOS than on the other platform. Search online for “iOS crack prevention” to get started reading on the topic. Then you’ll be better able to decide whether this is worth the trouble.