Debug构建和分发构建的iPhone项目构建设置有哪些主要区别? [英] What are the main differences in iPhone project build settings for Debug build and Distribution build?

查看:111
本文介绍了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.

绝对使用分发构建设置。

这篇关于Debug构建和分发构建的iPhone项目构建设置有哪些主要区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆