pokeb/asi-http-request — Issue #309: App rejected due to private API usage.
Author: skabber
Created: 2012-03-06 21:35:39+00:00
State: open

I just had an app rejected by Apple because of private API usage.

> We found the following non-public API/s in your app:
>
> setUserAgent:

The ASIHTTPRequest object has a `@property (retain) NSString *userAgent;`. The compiler and `@synthesize userAgent;` are creating the `- (void) setUserAgent:(NSString *)userAgent;` method that Apple is complaining about.

I suggest changing the name of this property to something else.

Also, this was an iOS 5 only app. I'm not sure when Apple started marking `setUserAgent:` as a private API.