Search code examples
iositunesnon-public-selectors

iTunes : App Upload Warning : The app references non-public selectors in :setRefreshInterval


While uploading the binary app to iTunes, it reports warning as follows:

The app references non-public selectors in :setRefreshInterval

  • How can I solve this issue?
  • Which public API can resolve the issue (:setRefreshInterval) ?

Solution

  • It means you have used a private API, not a documented/public one. Apple will generally reject your app if you use this because they are not permitted and if Apple changes the internal system (included this undocumented code) it can crash your app. And people would leave negative reviews.

    In this case setRefreshInterval: is the private method so what does setRefreshInterval: do in your code, then maybe I can give you alternatives...

    I'm pretty sure to check if you are using a public API: there is no auto completion and another thing is press alt and click the method/property to see if it has documentation