在El Capitan中导出Xcode 7上的IPA错误

时间:2015-10-06 06:36:36

标签: ios xcode xcode7 ad-hoc-distribution app-distribution

由于Xcode 7和El Capitan I无法将存档导出到IPA文件中。当我完成流Export... > Save for Ad Hoc Deployment > Export (button)时,它会显示以下错误:Coulnd't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms

enter image description here

编辑:

这将是日志的相关部分

在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

2 个答案:

答案 0 :(得分:18)

取消选择"从bitcode"导出IPA时对话框中的复选框。如果选中则表示您要测试从bitcode创建的构建。查看更多详情here

答案 1 :(得分:1)

更改部署目标。 清理项目 建立项目&然后归档它。你会明白的。