自从Xcode7和El Capitan以后,我无法将存档文件导出为IPA文件。当我完成以下流程
在 IDEDistribution.critical.log 中。
导出...>保存用于Ad Hoc部署>导出(按钮)
时,它显示以下错误:在/Applications/Xcode.app/Contents/Developer/Platforms中找不到任何平台
。
编辑:
这是日志的相关部分
IDEDistribution.standard.log
{
code = 2109;
description = "couldn't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms";
info = {
};
level = ERROR;
}
在 IDEDistribution.critical.log 中。
2015-10-06 06:50:04 +0000 [MT] Presenting: Error Domain=IDEFoundationErrorDomain Code=1 "couldn't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms" UserInfo={NSLocalizedDescription=couldn't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms}
编辑 2:
列出 Platforms
目录:
$ ls -l /Applications/Xcode.app/Contents/Developer/Platforms
total 0
drwxr-xr-x 9 root wheel 306 2 oct 10:12 MacOSX.platform
drwxrwxr-x 8 root wheel 272 2 oct 10:12 WatchOS.platform
drwxr-xr-x 6 root wheel 204 2 oct 10:13 WatchSimulator.platform
drwxr-xr-x 8 root wheel 272 2 oct 10:13 iPhoneOS.platform
drwxr-xr-x 5 root wheel 170 2 oct 10:14 iPhoneSimulator.platform
ls -l /Applications/Xcode.app/Contents/Developer/Platforms
命令输出结果。 - Droppy