'Copy pods resources executed everytime I build the project

I have an app (A) and 3 frameworks(F1, F2, CommonFramework)

  • A depends on all 3 frameworks
  • F1 and F2 depend internally on CommonFramework
  • To integrate these frameworks in app and to manage dependencies among frameworks I have used Cocoapod

Problem Statement Build time is too long

Observations

  • I analyzed the build time reports and observed that every time it tries to Copy pod resources enter image description here
  • It is trying to copy files from derived data enter image description here

Hacky solution: I have one hacky solution to check the 'for install builds only' flag under the Build phase

enter image description here

Can you please suggest a proper solution?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source