First, the relative path defined in Podfile (with spm_pkg) is not correct when generating the umbrella package under .spm.pods/.umbrella
Second, the package dir is not present in the checkouts dir (of the umbrella package). So, we cannot cd to .spm.pods/.umbrella/.build/checkouts/<Package> to dump the metadata.
Solution
For the relative path issue, we can obtain the absolute path and use it in the umbrella package.
For the package dir issue, we can simply create a symlink (under the checkouts dir) to the original package dir.
What happened?
When using a local package:
spm_pkg
) is not correct when generating the umbrella package under.spm.pods/.umbrella
.spm.pods/.umbrella/.build/checkouts/<Package>
to dump the metadata.Solution
For the relative path issue, we can obtain the absolute path and use it in the umbrella package. For the package dir issue, we can simply create a symlink (under the checkouts dir) to the original package dir.
CocoaPods environment
No response
Anything else?
No response