spotify / XCRemoteCache

Other
833 stars 52 forks source link

[Pods] Align Debub-prefix-map for Pods project #27

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

Fix debugging experience for targets in Pods. #22 followup

22 changed the way CocoaPods plugin configures build settings paths - instead of absolute paths, it relies on generic SRCROOT.

It introduced a bug so all user targets were not "debuggable" as the debug-prefix-map was assuming the project path is nested in a directory (only valid for Pods project) and trying to rewrite paths from the "parent" dir.

With this fix, all debug-prefix-map rewrites are aligned (both for user and Pods target):

Screenshot 2021-12-01 at 19 18 29 Screenshot 2021-12-01 at 19 18 58