From 95f25d9aa9322fa747623b5a527599b299a48fc0 Mon Sep 17 00:00:00 2001 From: BlueRose <378100977@qq.com> Date: Tue, 4 Jul 2023 12:10:46 +0800 Subject: [PATCH] vault backup: 2023-07-04 12:10:46 --- 07-Other/MAC/安装Mac UE开发环境.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/07-Other/MAC/安装Mac UE开发环境.md b/07-Other/MAC/安装Mac UE开发环境.md index 1327417..cd19279 100644 --- a/07-Other/MAC/安装Mac UE开发环境.md +++ b/07-Other/MAC/安装Mac UE开发环境.md @@ -38,7 +38,20 @@ source ~/.zshrc ## macOS开发环境 https://ue5wiki.com/wiki/2329190d/ +运行生成解决方案.sh时会提示: +>ERROR: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs + 确认安装Xcode之后执行 ```bash sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms /Library/Developer/CommandLineTools/Platforms -``` \ No newline at end of file +``` + +## 为 xcode 开启多线程编译 +AMD CPU信息查看APP: +https://github.com/trulyspinach/SMCAMDProcessor/releases/tag/0.7.1 + +首先看一下 Mac 的硬件配置: +>sysctl machdep.cpu + +找到 `machdep.cpu.core_count` 字段,其中的数值就是 Mac 的核心数。然后可以给 xcode 开启多线程,数量数为核心数 *2,如我的是 8 核,就可以开启 16 线程: +> defaults write com.apple.Xcode PBXNumberOfParallelBuildSubtasks 16 \ No newline at end of file