vault backup: 2023-07-04 12:10:46
This commit is contained in:
parent
6e329e873a
commit
95f25d9aa9
@ -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
|
||||
```
|
||||
|
||||
## 为 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
|
Loading…
x
Reference in New Issue
Block a user