Xcode 11 stuck on archiving

前端 未结 2 2078
無奈伤痛
無奈伤痛 2020-12-18 19:41

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 Fire

相关标签:
2条回答
  • 2020-12-18 20:21

    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)!

    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?

    0 讨论(0)
  • 2020-12-18 20:22

    I have found a clean and quick solution in the meantime, click "Pods" in the project navigator, then in targets (picture) set SwiftSoup,

    enter image description here

    In Swift compiler set both -Onone. Now try to archive.

    enter image description here

    0 讨论(0)
提交回复
热议问题