Swift Compilation Hangs on Release Builds

I’m getting an issue where compiling both my macOS and iOS frameworks in Release modes (i.e., Archive) in Xcode 10.2. This happens with both Swift 4.2 and with Swift 5. I can get it to stop hanging by either:

  • Changing Compilation Mode from Whole Module to Incremental
  • Changing Optimization Level from Optimize for Speed to either Optimize for Size or No Optimization

 

Does anyone know what may be going on here? Is there a likely culprit in my codebase or is this just a compiler bug?

Powered by WPeMatico

About

You may also like...

Comments are closed.