API-Examples icon indicating copy to clipboard operation
API-Examples copied to clipboard

Binary rejected : The app references non-public selectors

Open rajdhakate opened this issue 3 years ago • 4 comments

Hi,

I've updated to v3.3.0 and uploaded the app on AppStore connect. Got an issue from Apple after the app was processed.

We identified one or more issues with a recent delivery for your app, AppName. Please correct the following issues, then upload again.

ITMS-90338: Non-public API usage - The app references non-public selectors in AppName: netServiceBrowser:didRemoveService:, setUid:, stopPreview, transform:. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/

rajdhakate avatar Jan 22 '21 13:01 rajdhakate

@rajdhakate hi 3.3.0 does not have any static library they are all dynamic. do you have a reproducible project so that we can help you take a look?

plutoless avatar Jan 26 '21 04:01 plutoless

Hi. Sorry for late reply. The issue can be reproduced by just adding the Agora pod in project and distributing app in Testflight. Since the distribution is involved I'm not sure if I can provide any sample project.

rajdhakate avatar Feb 05 '21 06:02 rajdhakate

@rajdhakate does this even happen if you start a new project and just put agora sdk in?

plutoless avatar Feb 06 '21 07:02 plutoless


 @return * 0: Success.
* < 0: Failure.
 */
- (int)startPreview;

/** Stops the local video preview and the video.

 @return * 0: Success.
* < 0: Failure.
 */
- (int)stopPreview;
- 

So, here in the Agora SDK, there are functions, like startPreview & stopPreview That seems to be the issue, it seems.

twentyone24 avatar Aug 09 '21 03:08 twentyone24