Debug构建和分发构建的iPhone项目构建设置有哪些主要区别?
我想确保使用最适合我的发布版本的构建设置,这是基于我的发布版本设置。现在,我没有看到Debug构建和分发构建的设置之间存在很大差异。只使用默认设置是否安全?
I want to make sure I am using the most correct build settings for my distribution build, which is based off of my Release build settings. Right now I am not seeing a whole lot of difference between the settings for Debug build and Distribution build. Is it safe to just go with the default settings?
调试:
调试构建设置包括应用程序二进制文件中的调试符号,并且通常会转换编译时优化,这可能会影响代码执行路径。调试符号允许您在调试器中单步执行代码时获取有意义的信息。如果您已设置应用程序日志记录宏,则该设置也很有用。它允许您启用/禁用它以进行开发和分发。
The debug build settings include debugging symbols in your application binary and usually turn of compile time optimizations which may affect the code execution path. Debugging symbols allow you to get meaningful information while stepping through the code in a debugger. The setting is also useful if you have setup an application logging macro for instance. It would let you enable/disable it for development and distribution.
发布:
发布很可能会给你一个较小的二进制文件,并且启用优化后执行时间更短。
Release will most likely give you a smaller binary, and faster execution time with optimizations enabled.
绝对使用分发构建设置。