-
Notifications
You must be signed in to change notification settings - Fork 601
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
URLRequest.ohhttpStubs_HTTPBody() method not found #259
Comments
Hey @mplorentz, thanks for reporting the issue! I believe you're right, I might have closed #222 too soon. So since #222, I've added the I'll try to do a fix soon (probably re-applying parts of #216 — but without the |
I can take a shot at it. #216 looks easy enough to reimplement. I will try to submit a PR tomorrow. |
Cool, looking forward to it! |
@mplorentz just gave you push access to the repo so you can create your branch directly on it instead of having to fork 👍 |
New Issue Checklist
OHHTTPStubs
for your project sectionEnvironment
Issue Description
I am having trouble using the
ohhttpStubs_HTTPBody()
method onURLRequest
. When I try to use it I get a compilation error: "Value of type 'URLRequest' has no member 'ohhttpStubs_HTTPBody'".I am running Xcode 9.0 (9A235) and building a Swift 4 project. I have uploaded a sample project that exhibits the issue.
ohhttpstubstest.zip
It looks like this was an issue in Swift 3 (#222) and version 6.0.0 was supposed to fix this issue.
The workaround given in #22
(request as NSURLRequest).ohhttpStubs_HTTPBody()
does work for me, but I figured I would open a ticket since this is supposed to be fixed.Complete output when you encounter the issue (if any)
The text was updated successfully, but these errors were encountered: