erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

Error with @import OCMock; #331

Closed lkuczborski closed 4 years ago

lkuczborski commented 7 years ago

Having issues with @import style imports and OCMock. When I try to import it like this: @import OCMock; project compiles properly but I get an inline error - "Module 'OCMock' not found". Using latest OCMock via CocoaPods.

erikdoe commented 7 years ago

I have no idea. Did this work with previous versions of OCMock? Does your setup work with the old-style imports?

lkuczborski commented 7 years ago

Yeah, the problem occurs when you switch from old import format to module import format. Probably this should be checked on a fresh Xcode project with only this one pod added as this may as well be a CocoaPods configuration problem...

erikdoe commented 7 years ago

Assuming this is still an issue, could you provide that Xcode project that reproduces the problem?

erikdoe commented 4 years ago

Closing due to inactivity.