Posts

Post not yet marked as solved
58 Replies
So actually this seems to be fixed on apple sidehttps://github.com/apple/swift/commit/378c6adbd625f1c1f568fa28116be3335506082f#diff-8b0154fba360507e6f59f3a0c8e98d1aHowever who knows when this will be part of Xcode. Most probably only when Swift 5.1 is released. Unlike my previous comment this actually seems a problem with the SwiftSoup library. Mayhap you people are also using it?Anyway if you are using SwiftSoup and CocoaPods like I was, make sure you disable Optimization Level by changing it from Optimize for Speed to No Optimization ON THE AFFECTED LIBRARY, in this case SwiftSoup.This solved my issue, and the builds no longer freeze. I'll have to live with this for now until the Swift fix gets it's way into Xcode or i have time to migrate to another library.NOTE: Mayhap your culprit library is another one. Please identify it by carefully examining the build log. Then follow this instructions by replacing SwiftSoup with the library which is actually causing the issue.I did this by adding the following to my Podfile: post_install do |installer| installer.pods_project.targets.each do |target| if ['SwiftSoup'].include? target.name target.build_configurations.each do |config| config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone' end end end end
Post not yet marked as solved
58 Replies
To be honest I think this is being caused by Firebase. In my case it hangs on a Firebase compiling step, and I've seen other people with similar issues. Builds well for debug, not for release.