CocoaPods / Core

The models used within the CocoaPods gem
MIT License
160 stars 349 forks source link

SPM: allow pod specs to declare Swift Package Manager dependencies with spm_dependency #743

Open mfazekas opened 1 year ago

mfazekas commented 1 year ago

Implements: https://github.com/CocoaPods/CocoaPods/issues/11942

See also: https://github.com/CocoaPods/CocoaPods/pull/11953 First draft.

Note that I've implemented the keyword argument syntax:

spec.spm_dependency(
   :url => 'https://github.com/apple/swift-atomics.git',
   :requirement' => {:kind => 'upToNextMajorVersion',  :minimumVersion => '1.1.0'},
   :products' => ['Atomics']
)

But maybe using positional arguments would be better:

spec.spm_dependency(
   'https://github.com/apple/swift-atomics.git',
   {:kind => 'upToNextMajorVersion',  :minimumVersion => '1.1.0'},
   ['Atomics']
)
krishnkishore commented 10 months ago

Is there a plan to merge and release this soon?

bensonarafat commented 9 months ago

Pls, when can this be merge soon

zhu-xiaowei commented 8 months ago

This is a very useful feature for developers using the CocoaPods managed project. Looking forward to merging soon.

renanyoy commented 8 months ago

what's the status of this PR ? is it available in cocoapod 1.14.3 ? is there still someone working on cocoapod ?

eleazar0425 commented 7 months ago

Is this getting merged soon?

Dunedubby commented 6 months ago

Any update with getting this merged?

zeeshanmakeen commented 4 months ago

Any news about getting this merged?