Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCMock with Swift Package Manager #335

Closed
mRs- opened this issue Feb 26, 2020 · 10 comments
Closed

OCMock with Swift Package Manager #335

mRs- opened this issue Feb 26, 2020 · 10 comments

Comments

@mRs-
Copy link

mRs- commented Feb 26, 2020

Is there a plan to use OCMock with Swift Package Manager? Would be awesome to stub Apples Objective-C classes with Cuckoo via SPM 😀

@TadeasKriz
Copy link
Member

TadeasKriz commented Feb 26, 2020

Unless OCMock is available through SwiftPM, I'd think this wouldn't be possible.

@mRs-
Copy link
Author

mRs- commented Feb 26, 2020

Okay, will take care of getting OCMock in SwiftPM then 😀

@mRs-
Copy link
Author

mRs- commented Feb 26, 2020

It seems there is already a Pull Request at OCMock erikdoe/ocmock#379. I reached out to them. Maybe we can get some traction there 👍

@MatyasKriz MatyasKriz added the awaiting response A Cuckoo maintainer is awaiting response from the issue/PR author/community. label Feb 29, 2020
@mRs-
Copy link
Author

mRs- commented Jul 16, 2020

Pull Request on OCMock is coming in erikdoe/ocmock#442

@MatyasKriz
Copy link
Collaborator

Hey, @mRs-. Thanks for the update!

@mRs-
Copy link
Author

mRs- commented Aug 19, 2020

Is it possible to fork OCMock for the time being and add the revision to SPM? Like Firebase is doing this? https://github.com/firebase/firebase-ios-sdk/blob/master/Package.swift#L123

@MatyasKriz
Copy link
Collaborator

Hey, @mRs-. Thanks for the update on this and proposed temporary solution. I don't see an issue with this as long as the SPM-added OCMock works fine with Cuckoo.
What do you think, @TadeasKriz ?

@kainjow
Copy link
Contributor

kainjow commented Jun 11, 2021

@MatyasKriz
Copy link
Collaborator

Thank you for the update. 🙂 So I suppose nothing prevents us to implement support for OCMock with SwiftPM now.

@MatyasKriz MatyasKriz added enhancement and removed awaiting response A Cuckoo maintainer is awaiting response from the issue/PR author/community. labels Feb 23, 2022
@MatyasKriz
Copy link
Collaborator

I've managed to integrate OCMock as an SPM dependency, so it will be available for both SPM and CocoaPods out of the box with next release.

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

Successfully merging a pull request may close this issue.

4 participants