update: 更新内容

This commit is contained in:
binpeng.liu
2023-10-05 11:03:00 +08:00
parent 8ad716996f
commit 4909438c15
5 changed files with 44 additions and 4 deletions

View File

@@ -366,6 +366,10 @@ Debug 设置为 NO Release 设置为 YES 可减少可执行文件大小。
Xcode 默认会开启此选项C/C++/Swift 等静态语言编译器会在 link 的时候移除未使用的代码,但是对于 Objective-C 等动态语言是无效的。因为 Objective-C 是建立在运行时上面的,底层暴露给编译器的都是 Runtime 源码编译结果,所有的部分应该都是会被判别为有效代码。
带来的好处:
- App 可执行文件体积减少
- 减少 App 分页(分页过多会容易引起内存引起缺页异常)
默认选项,不做修改。
#### 3.1.4 Apple Clang - Code Generation