This is similar to how we declare pod dependencies. In podspecs, we declare the dependency like s.dependency "A" without its source (ex. :git => "...", :tag => "...").
The same should apply to how we declare SPM dependencies.
Proposed changes
In podspecs, declare just dependencies without their sources:
# In podspec
Pod::Spec.new do |s|
...
s.spm_dependency "swift-syntax/SwiftSyntaxMacros"
end
In Podfile, declare the sources of those SPM packages
This is similar to how we declare pod dependencies. In podspecs, we declare the dependency like
s.dependency "A"
without its source (ex.:git => "...", :tag => "..."
). The same should apply to how we declare SPM dependencies.Proposed changes
In podspecs, declare just dependencies without their sources:
In Podfile, declare the sources of those SPM packages