当前位置:网站首页>Solution to slow compilation speed of Xcode
Solution to slow compilation speed of Xcode
2022-04-23 07:22:00 【dotphoenix】
Recently, when developing a large project, I encountered a headache , Due to the large number of project codes , Compile links every time 1 About minutes , Debugging is a waste of time , So I studied how to improve the speed of compiling links , Share it here .
There are three main ways to improve the speed of compiling Links :
1. Improve XCode Number of threads used at compile time
defaults write com.apple.Xcode PBXNumberOfParallelBuildSubtasks 4
XCode The default usage is CPU The same number of cores , But because of the IO Operation is often better than CPU More operations , Therefore, appropriately increasing the number of threads can speed up the compilation speed to a certain extent . I use 4 Nuclear CPU, Change the number of threads to 8 The post compilation speed is slightly improved .
2. take Debug Information Format Change it to DWARF
In the project corresponding to Target Of Build Settings in , find Debug Information Format This one , take Debug At the time of the DWARF with dSYM file Change it to DWARF.
This item sets whether to add debugging information to the executable file , Change it to DWARF after , If the program crashes , The function stack corresponding to the crash location will not be output , But because of Debug In mode, you can XCode View debugging information in , So instead of DWARF It doesn't matter much . After this change , It can greatly improve the compilation speed .
3. take Build Active Architecture Only Change it to Yes
In the project corresponding to Target Of Build Settings in , find Build Active Architecture Only This one , take Debug At the time of the No Change it to Yes.
This item sets whether to compile only the version of the current schema , If No, Will compile versions of all schemas . It should be noted that , This option in the Release Mode must be Yes, Otherwise, it will be published ipa Will not work on some devices . After this change , It can significantly improve the compilation speed .
After setting the above three items , Compile time from 1 Minutes or so to 10 About seconds , Therefore, the effect is quite obvious .
版权声明
本文为[dotphoenix]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230609059585.html
边栏推荐
- 面试总结之特征工程
- The Cora dataset was trained and tested using the official torch GCN
- Visual Studio 2019安装与使用
- [Point Cloud Series] SG - Gan: Adversarial Self - attachment GCN for Point Cloud Topological parts Generation
- 图像分类白盒对抗攻击技术总结
- Gephi tutorial [1] installation
- MySQL notes 4_ Primary key auto_increment
- GEE配置本地开发环境
- Cancel remote dependency and use local dependency
- MySQL的安装与配置——详细教程
猜你喜欢
微信小程序 使用wxml2canvas插件生成图片部分问题记录
winform滚动条美化
Visual Studio 2019安装与使用
[point cloud series] sg-gan: advantageous self attention GCN for point cloud topological parts generation
【2021年新书推荐】Learn WinUI 3.0
Component based learning (1) idea and Implementation
PaddleOCR 图片文字提取
Chapter 3 pytoch neural network toolbox
【点云系列】 场景识别类导读
Easyui combobox 判断输入项是否存在于下拉列表中
随机推荐
1.1 pytorch and neural network
[2021 book recommendation] kubernetes in production best practices
【3D形状重建系列】Implicit Functions in Feature Space for 3D Shape Reconstruction and Completion
Binder mechanism principle
【2021年新书推荐】Red Hat RHCSA 8 Cert Guide: EX200
机器学习——PCA与LDA
Pytoch model saving and loading (example)
Reading notes - activity
PyTorch最佳实践和代码编写风格指南
[recommendation of new books in 2021] practical IOT hacking
【点云系列】SO-Net:Self-Organizing Network for Point Cloud Analysis
What did you do during the internship
Gee configuring local development environment
“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated
winform滚动条美化
Compression and acceleration technology of deep learning model (I): parameter pruning
【2021年新书推荐】Red Hat Certified Engineer (RHCE) Study Guide
Chapter 2 pytoch foundation 2
torch. mm() torch. sparse. mm() torch. bmm() torch. Mul () torch The difference between matmul()
【点云系列】Fully-Convolutional geometric features