在El Capitan上使用Xcode 7导出IPA时出现错误

7
自从Xcode7和El Capitan以后,我无法将存档文件导出为IPA文件。当我完成以下流程导出...>保存用于Ad Hoc部署>导出(按钮)时,它显示以下错误:在/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

请确保添加appID和适用的发布配置文件。 - Mihir Oza
3
请你也发布一下从“显示日志”按钮中得到的日志记录吗? - Imran
你是否检查过钥匙串中的开发者账户设置是否正确? - Uma Madhavi
打开 Terminal.app 并且更新你的问题,使用 ls -l /Applications/Xcode.app/Contents/Developer/Platforms 命令输出结果。 - Droppy
3个回答

18

在导出IPA时,取消“从位码导出”复选框的选择。如果勾选,则表示您要测试从位码创建的构建。请在此处查看更多详细信息。


哦,天啊@protspace。谢谢! - Michal Shatz

1

你可以按照以下步骤移除此错误:

1)前往目标

2)构建设置 > 将“启用位码”设置为NO

3)再次尝试归档。


1

更改部署目标。 清理项目。 构建项目,然后进行归档。你会得到它。


你有我遇到的同样问题吗? - anavarroma
没问题,我已经将IPA导出到我的桌面。 - Uma Madhavi

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接