Xcode 10无法归档项目 [英] Xcode 10 not being able to archive project

查看:110
本文介绍了Xcode 10无法归档项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试上传AppStore中已经存在的应用程序的新版本.先前版本是使用Xcode 9.4上传的.但是现在需要Xcode 10才能获得批准.

I'm trying to upload a new version of an app that is already in the AppStore. Previous version was uploaded using Xcode 9.4. But now Xcode 10 will be required in order to get approval.

遗憾的是,Xcode 无法归档项目,所以我陷入了第一步,甚至无法生成要提交的二进制文件.

Sadly, Xcode is not being able to archive the project, so I'm getting stuck on the first step, not even being able to generate the binary for submission.

没有错误:根据Xcode的说法,我们的归档过程有2000多个任务,只是卡在任意任务中(总是一样). Xcode不会崩溃,不显示错误,也不会抱怨.它只是无法通过该任务,而IDE将永远在那里.

There is no error: According to Xcode, our archiving process has more than 2000 tasks, and is just gets stuck in arbitrary task (always the same). Xcode does not crash, does not show an error and does not complain. It just can't pass that task and the IDE stays there for ever.

我们在不同的计算机上进行了尝试,还尝试了两个版本:该应用程序的先前版本(可以使用Xcode 9.4存档)和一个新版本,已成功迁移到Swift 4.2.

We tried it in different machines and also tried two versions: the previous version of the app (that can be archived with Xcode 9.4) and a new version, successfully migrated to Swift 4.2.

更新:

  • 旧版构建系统也不起作用.
  • 通用iOS设备构建也会卡住(不仅仅是存档),但是该软件可以在模拟器上编译并运行.
  • 试图编译非迁移版本,选择Swift 4(而不是4.2)并获得相同的结果.
  • 使用优化级别,整体编译与增量编译等,并始终获得相同的结果.
  • 在Xcode 9.4中,它无需更改即可很好地为通用iOS设备构建.
  • Legacy building system does not work either.
  • Build for a Generic iOS Device also get stuck (not just archiving), but the software compiles and works on the simulator.
  • Tried to compile the non-migrated version selecting Swift 4 (instead of 4.2) and same results.
  • Played with optimization levels, whole vs. incremental compilation, etc., and always the same results.
  • In Xcode 9.4 it builds for Generic iOS Device nicely without changing anything.

推荐答案

最后,我从项目构建设置的有效架构"中删除了"armv7".存档了!这意味着iPhone 4S不再兼容. 但是,我不认为苹果会以这种方式淘汰4S.通过查看日志,我发现它卡在了创建dSYM符号的过程中.

Finally, I removed "armv7" from "Valid Architectures" of project build settings. It archived! This means iPhone 4S is not compatible anymore. But, I don't think Apple will deprecate 4S in this way. By diving into the logs, I found that it stucks in creating dSYM symbols.

[17:15:49]: ▸ Generating 'ZUS_INHOUSE_DEV.app.dSYM'
[17:16:15]: ▸
[17:16:15]: ▸ (arm64)  could not find object file symbol for symbol _lum_convert
[17:16:15]: ▸ (arm64)  could not find object file symbol for symbol _ff_init_desc_hscale
[17:16:15]: ▸ (arm64)  could not find object file symbol for symbol _lum_h_scale
[17:16:15]: ▸ (arm64)  could not find object file symbol for symbol _ff_init_desc_cfmt_convert
[17:16:15]: ▸
[17:16:15]: ▸ (arm64)  could not find object file symbol for symbol _ff_init_desc_chscale
[17:16:15]: ▸ (arm64)  could not find object file symbol for symbol _chr_h_scale
[17:16:15]: ▸ (arm64)  could not find object file symbol for symbol _ff_init_desc_no_chr
[17:16:15]: ▸ (arm64)  could not find object file symbol for symbol _no_chr_scale
[17:16:30]: ▸ (arm64)  could not find object file symbol for symbol _vlc_entry__audio_filter_libscaletempo_pitch
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸
[17:16:30]: ▸ (arm64)  failed to insert symbol '_best_overlap_offset_float' in the debug map.

因此,我想,另一个解决方法是将调试信息格式"从带有dSYM文件的DWARF"更改为"DWARF".

Thus, I guess, another workaround is change "Debug Infomation Format" from "DWARF with dSYM File" to "DWARF".

这篇关于Xcode 10无法归档项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆