cocoapods-binary icon indicating copy to clipboard operation
cocoapods-binary copied to clipboard

Bug: Removes Copy Pods Resources build phase when using cache

Open CodeStage opened this issue 5 years ago • 0 comments

I have this problem with the GoogleTagManager pod, but I think it's a general problem with pod specs that define a .bundle in "resources":

  • When running pod install the first time everything is fine: The Copy Pods Resources build phase for the GoogleTagManager resource bundle ("GoogleTagManager-TagManagerResources") is created
  • When running pod install the second time the bundle phase is removed from the project resulting in a crash because GoogleTagManager can't find it's resources
  • Deleting Pods/_Prebuild before every pod install helps as a workaround, because then the build phase is not removed
  • I'm not using all_binary! in my Podfile, but I testet it and it doesn't make a difference

What's your environment:

CocoaPods : 1.8.4 Xcode : 11.3.1 (11C504) cocoapods-binary : 0.4.4

A demo project is helpful:

  • To reproduce it, it's enough to add GoogleTagManager pod to the demo project
  • It can be observed with the demo project that the "GoogleTagManager-TagManagerResources" build phase disappears as described above (but it does not crash because GoogleTagManager is not configured properly so it doesn't run)
  • BinaryDemo.zip

CodeStage avatar Jan 30 '20 11:01 CodeStage