Cuckoo icon indicating copy to clipboard operation
Cuckoo copied to clipboard

OCMock with Swift Package Manager

Open mRs- opened this issue 5 years ago • 9 comments

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

mRs- avatar Feb 26 '20 07:02 mRs-

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

TadeasKriz avatar Feb 26 '20 07:02 TadeasKriz

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

mRs- avatar Feb 26 '20 08:02 mRs-

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

mRs- avatar Feb 26 '20 08:02 mRs-

Pull Request on OCMock is coming in https://github.com/erikdoe/ocmock/pull/442

mRs- avatar Jul 16 '20 05:07 mRs-

Hey, @mRs-. Thanks for the update!

MatyasKriz avatar Jul 16 '20 06:07 MatyasKriz

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

mRs- avatar Aug 19 '20 14:08 mRs-

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 ?

MatyasKriz avatar Aug 20 '20 20:08 MatyasKriz

https://github.com/erikdoe/ocmock/pull/442 was abandoned in favor for https://github.com/erikdoe/ocmock/pull/460 which was merged: https://github.com/erikdoe/ocmock/blob/master/Package.swift

kainjow avatar Jun 11 '21 17:06 kainjow

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

MatyasKriz avatar Jul 22 '21 10:07 MatyasKriz