Closed trinhngocthuyen closed 2 months ago
Take nearby as an example: https://github.com/google/nearby.
NearbyConnections
spm_pkg
nearby
<path/to/checkouts>/nearby
<path/to/checkouts>/NearbyConnections
The following line needs to be updated https://github.com/trinhngocthuyen/cocoapods-spm/blob/7847017dc46e4940cdac798ce8f527cf0616ba8a/lib/cocoapods-spm/resolver/product_dep_resolver.rb#L23
It should be Dir.chdir(spm_config.pkg_checkouts_dir / pkg.slug) instead
Dir.chdir(spm_config.pkg_checkouts_dir / pkg.slug)
No response
What happened?
Take nearby as an example: https://github.com/google/nearby.
NearbyConnections
. This name matches the one defined in Podfile withspm_pkg
nearby
. Therefore, the corresponding dir in checkouts dir is<path/to/checkouts>/nearby
, not<path/to/checkouts>/NearbyConnections
Solution
The following line needs to be updated https://github.com/trinhngocthuyen/cocoapods-spm/blob/7847017dc46e4940cdac798ce8f527cf0616ba8a/lib/cocoapods-spm/resolver/product_dep_resolver.rb#L23
It should be
Dir.chdir(spm_config.pkg_checkouts_dir / pkg.slug)
insteadCocoaPods environment
No response
Anything else?
No response