Subito-it / PodBuilder

A tool to precompile CocoaPods pods
Other
284 stars 28 forks source link

Fix matching of prebuilt items and specs #80

Closed dmazzoni closed 8 months ago

dmazzoni commented 8 months ago

This PR fixes the matching of prebuilt items and their corresponding spec during the post-install phase.

Let's consider the following scenario:

When looking up the spec for the Foo.xcframework built item, the previous logic would match Bar/Foo first. This leads to the following:

The proposed changes aim to prevent this by making sure that we check name equality between the built item and the spec's module_name for root specs first. If no matches are found in root specs, the existing fallback would apply.