一、背景介绍
The macOS 10.14 SDK no longer contains support for compiling 32-bit applications. If developers need to compile for i386, Xcode 9.4 or earlier is required. (39858111)
Apple has announced that its upcoming macOS Mojave release for Macs will officially be the last to support 32-bit apps.
大意:
中央已经决定了!从现在开始禁止编译32位的 mac 上的可执行文件!下一个大版本起,任何人都不得运行32位的可执行文件。
参考链接:https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
二、基本原理
xcode-select
命令用于管理 /usr/bin/gcc
等常用的开发者工具,即Command Line Tools
,检查其是否存在,有时候会跟 Xcode 一起被安装,也可以单独存在。其中有一个基础属性,用来指定Command Line Tools
的位置,使用命令查看它的值。
> xcode-select -p
/Application/Xcode.app/C