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

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

从 Xcode 7 和 El Capitan 开始,我无法将存档导出到 IPA 文件中。当我完成流程 Export... > Save for Ad Hoc Deployment > Export (button) 时,它显示以下错误:Coulnd't find any platforms at all in/Applications/Xcode。应用程序/内容/开发人员/平台

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

最佳答案

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

关于ios - 在 El Capitan 的 Xcode 7 上导出 IPA 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32963264/

相关文章:

ios - cocoa 足类 1.0 : same pods for multiple targets

xcode - 无法将 IBAction 连接到 xib 的 TableView

ios - Xcode 7 UI 测试,录制按钮显示为灰色

xcode - 使用 Objective-C 的 SFSafariViewController

iphone - 如何使用 CocoaAsyncSocket 读取数据?

ios - 更改自定义 UIButton 的 TitleColor (iOS 8 + swift)

ios - 应用程序在 iCloud 中存储数据

ios - ld : -bundle and -bitcode_bundle cannot be used together

ios - 如果 numberOfItemsInSection 为 1,则不调用 cellForItemAt UICollectionView

ios - 带有 MagicalRecord 的 JSONModel