Running 1 of 2 custom shell script stuck for 2 minutes in Xcode

喜欢而已 提交于 2019-11-29 07:10:42

Finally, I found a solution for this. At least the total build time now is 57sec.

I found that 'Embed Pods Framework' (Once 'Embed Pods Framework' and 'CP Embed Pods Framework') builds twice. Anyway, I don't have an idea why I have both of them on build phases.

I found for this on Report Navigator.

Solution:

1) I let only active ✓ Run script only when installing only for'[CP]Embed Pods Framework'

2) Optimization Level on Build Settings for debug was -None. I set to Fast...

3) Tip: use Simulator instead of Device for minimal build time.

Added this at the end of you Podfile

post_install do |installer|
    puts("Update debug pod settings to speed up build time")
    Dir.glob(File.join("Pods", "**", "Pods*{debug,Private}.xcconfig")).each do |file|
    File.open(file, 'a') { |f| f.puts "\nDEBUG_INFORMATION_FORMAT = dwarf" }
  end
end
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!