spotify / XCRemoteCache

Other
830 stars 53 forks source link

Customize rewritting dependency paths #87

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

69 reported that for development_pods some absolute dependency paths sneak into meta .json file and thus degrade the hit rate.

I looked at how CocoaPods generates development_pods project and it has a unique setup:

This PR introduces that:

How to test?

Use the sample project shared in #69: https://github.com/dwirandyh/xcremotecache-modular-example Add into Podfile's xcremotecache configuration:

 'custom_rewrite_envs' => ['PODS_TARGET_SRCROOT']

Verify no absolute paths in the User development_pod's json.

vasvf commented 2 years ago

Looks like it's somewhat duplicate of already existing out_of_band_mappings config

polac24 commented 2 years ago

That is correct, yet custom_rewrite_envs is more powerful - it can nicely resolve Build Settings in Xcode build time