Core icon indicating copy to clipboard operation
Core copied to clipboard

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

Open mfazekas opened this issue 1 year ago • 7 comments

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']
)

mfazekas avatar Jun 15 '23 14:06 mfazekas

Is there a plan to merge and release this soon?

krishnkishore avatar Jan 23 '24 17:01 krishnkishore

Pls, when can this be merge soon

bensonarafat avatar Feb 18 '24 14:02 bensonarafat

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

zhu-xiaowei avatar Mar 11 '24 02:03 zhu-xiaowei

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

renanyoy avatar Mar 15 '24 16:03 renanyoy

Is this getting merged soon?

eleazar0425 avatar Apr 16 '24 00:04 eleazar0425

Any update with getting this merged?

Dunedubby avatar Apr 24 '24 18:04 Dunedubby

Any news about getting this merged?

zeeshanmakeen avatar Jul 08 '24 18:07 zeeshanmakeen