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

XCTestExpectation+OHRetroCompat.h not available via CocoaPods #70

Closed
wka opened this issue Aug 12, 2014 · 4 comments
Closed

XCTestExpectation+OHRetroCompat.h not available via CocoaPods #70

wka opened this issue Aug 12, 2014 · 4 comments

Comments

@wka
Copy link

wka commented Aug 12, 2014

The XCTestExpectation+OHRetroCompat.h and .m files look very helpful. However they are not installed via CocoaPods. I think this is because they are not in the Sources/ directory.

@samirGuerdah
Copy link

@AliSoftware
Copy link
Owner

Yeah I may add them as an optional subspec maybe, good suggestion.

@AliSoftware
Copy link
Owner

Done ! 😃

Version 3.1.5 now includes a new subspec XCTestExpectation that imports this class too
(class that is now in the OHHHTTPStubs/XCTestExpectation+Xcode5 folder and not in UnitTests anymore, FYI)


So now:

pod 'OHHTTPStubs'

does NOT include the XCTestExpectation+OHRetroCompat.{hm} files, but only OHHTTPStubs itself (as with previous versions). This in fact import the Core subspec, which is the default subspec

And:

pod 'OHHTTPStubs/XCTestExpectation' 

does include the XCTestExpectation+OHRetroCompat.{hm} files, but does NOT include OHHTTPStubs itself (so that you can use XCTestExpectation+OHRetroCompat without using OHHTTPStubs if you only need the XCTestExpectation support).

So if you want both, don't forget to add both lines in your Podfile:

pod 'OHHTTPStubs'
pod 'OHHTTPStubs/XCTestExpectation'

Thanks again for the good suggestion!

@wka
Copy link
Author

wka commented Aug 15, 2014

Great, thanks!

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

No branches or pull requests

3 participants