-
Notifications
You must be signed in to change notification settings - Fork 603
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
Including OHHTTPStubs in project cause for rejection from AppStore #7
Comments
In my opinion, you should not have OHHTTPStubs code in you real app, only in the tests target, check where your headers are included. |
Thanks -- I thought I did follow the instructions on the wiki for only adding it to the Test target, but it's certainly possible I screwed that up. |
Yes that's not really an issue because you should only use You should only need to use stubs in your tests & debug code, it doesn't have any sense to use it in production code. If you guys have any idea if it is possible to detect if an application is being compiled with a production certificate using |
…roduction code. Only link it in your Unit Tests or inside #if directives to avoid using this code for AppStore builds (see #7)
Is this still an issue? It appears that the mentioned initializer isn't used anymore. Is there any other private API use with this library? I'd like to switch to including OHHTTPStubs via cocoapods, but cocoapods doesn't have conditional linking based on build configurations quite yet. |
Nope every use of any private API have been removed since this issue and no new private API have been introduced since the numerous new versions since. So this lib won't make your app being rejected from AppStore submission.
Also note that the conditional linking based on build configurations has been recently added to the master branch of CocoaPods and will thus be available in the next release of CocoaPods ! |
…roduction code. Only link it in your Unit Tests or inside #if directives to avoid using this code for AppStore builds (see #7)
Hi, I included OHHTTPStubs in a project I submitted to the AppStore, but was subsequently rejected. The cause was "We found that your app uses one or more non-public APIs". After looking through the code, it turned out to be the bit in OHHTTPStubs.m, lines 168-175:
Maybe I missed it, but it would be very helpful to have this in the documentation (near the top? in the installation section?) highlighting this caveat.
The text was updated successfully, but these errors were encountered: