Xcode 11卡在归档上 [英] Xcode 11 stuck on archiving
问题描述
我正在使用Xcode 11 GM 2存档我的应用程序.它使用CocoaPods和Swift. 尝试存档我的应用程序时,它无限卡在此处: 在删除Firebase或其他框架后,仍然会发生这种情况.有关如何解决此问题的任何想法?
I‘m using Xcode 11 GM 2 to archive my app. It uses CocoaPods and Swift. When trying to archive my app, it infinitely gets stuck here: This still happens after removing Firebase or other frameworks. Any ideas on how to resolve this?
推荐答案
这可能会有所帮助(我在另一个CocoaPod SwiftSoup
上遇到问题).尝试获取Xcode 11来存档我的应用程序时(甚至在命令行中),我遇到了莫名其妙的挂起.这并不是永久性的修复,而是一种临时的解决方法(换句话说,我们不必这样做就可以构建有问题的库)!
This could help (I was having an issue with SwiftSoup
, another CocoaPod). I was experiencing inexplicable hangs while trying to get Xcode 11 to archive my app (even at the command line). This is not meant to be a permanent fix, but rather a temporary workaround (in other words, we shouldn't have to do this to get a problematic library to build)!
将此添加到Podfile
的底部,然后重新运行pod install
.
Add this to the bottom of your Podfile
and re-run pod install
.
post_install do |installer|
installer.pods_project.targets.each do |target|
next unless target.name == '<NAME OF POD>'
target.build_configurations.each do |config|
next unless config.name.start_with?('Release')
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
end
end
end
然后尝试存档您的项目.如果那不起作用…也许尝试弄乱其他编译器优化设置?
Then try to archive your project. If that doesn't work… perhaps try messing around with other compiler optimization settings?
这篇关于Xcode 11卡在归档上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!