Skip to content

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

Open
mfazekas wants to merge 1 commit intoCocoaPods:masterfrom
mfazekas:podspec-spm
Open

SPM: allow pod specs to declare Swift Package Manager dependencies with spm_dependency#743
mfazekas wants to merge 1 commit intoCocoaPods:masterfrom
mfazekas:podspec-spm

Conversation

@mfazekas
Copy link
Copy Markdown

@mfazekas mfazekas commented Jun 15, 2023

Implements: CocoaPods/CocoaPods#11942

See also: CocoaPods/CocoaPods#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']
)

Copy link
Copy Markdown

@Archish27 Archish27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Super Awesome, Can someone please check & get this merged?

@krishnkishore
Copy link
Copy Markdown

Is there a plan to merge and release this soon?

@bensonarafat
Copy link
Copy Markdown

Pls, when can this be merge soon

@zhu-xiaowei
Copy link
Copy Markdown

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

@renanyoy
Copy link
Copy Markdown

renanyoy commented Mar 15, 2024

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

@eleazar0425
Copy link
Copy Markdown

Is this getting merged soon?

@Dunedubby
Copy link
Copy Markdown

Any update with getting this merged?

@zeeshanmakeen
Copy link
Copy Markdown

Any news about getting this merged?

@corasan
Copy link
Copy Markdown

corasan commented Feb 11, 2025

Hey @mfazekas are you able to merge this?

@hhrvoic
Copy link
Copy Markdown

hhrvoic commented Aug 26, 2025

Any info on this?

@MartinColja
Copy link
Copy Markdown

Are there any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.