Using DEBUG mode and RELEASE mode in iOS development
Copyright: This is an original post by the blogger and may not be reproduced without the blogger's permission. https://blog.csdn.net/u010105969/article/details/80320949
Previously, the offline and online interface domains of the project were controlled manually, and the interface domain was switched by commenting out the interface offline domain and releasing the previously commented online domain before each go-live. This operation has not been a problem until now, however some time ago when going live I forgot to make the domain switch, resulting in the interface still being an offline interface after going live. To avoid an oversight that could lead to this situation again, we should put the offline domain in DEBUG mode and the online domain in RELEASE mode, so that we can be sure that the online interface domain is definitely the correct domain.
DEBUG mode and RELEASE mode codes.