编辑:Apple的最新发行说明似乎表明构建系统发生了巨大变化。目前,Intune的软件包管理器最近还没有更新,所以除了更新之外我不希望再修改。
我刚刚更新了XCode和OSX,并且一如既往地运行Intune MAM打包器,但现在我没有成功,我得到了这个:
Version of MACOSX is 10.13.5
XCode prerequisite version check failed: failure in executing the xcodebuild command.
Missing prerequisite.
Cause of the error to be provided for investigation:Error Domain=IntuneAppPackager Code=22 "XCode version 5 or greater is required to run this tool." UserInfo={NSLocalizedDescription=XCode version 5 or greater is required to run this tool.}
我已经不得不重新启用证书以匹配配置文件,但这似乎无关。我通过默认设置安装了最新的XCode和构建工具。我搜索了这个错误的不同部分,没有回来。这可能是InTune的mam packager,但错误本身在说XCode Build工具时相对具体。
在终端中试用此代码:
xcode-select -p, then check if that path is correct path of your Xcode.
如果这不起作用,请尝试以下代码:
sudo xcode-select --switch /correct path of the xcode app.
例如:
sudo xcode-select --switch /Applications/Xcode_7.3.1.app/Contents/Developer
这就是我做的,它的工作原理!