Reputation: 2075
While uploading the binary app to iTunes, it reports warning as follows:
The app references non-public selectors in :setRefreshInterval
Upvotes: 2
Views: 6804
Reputation: 9157
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
Upvotes: 2
Reputation: 659
This means that the validation has spotted an invocation of some private API in your app. Take a look in that method mentioned in the warning and see if there is anything there that is not permitted. Once you've found it, try to accomplish the same thing using public APIs.
Upvotes: 1
Reputation: 116
I couldn't find that selector in the iOS public API. I found it in the MacOS NSTimeInterval class. And even though that selector could work in iOS, since it's not public, you can't use it in an iOS app if you plan to push that app to the AppStore.
Upvotes: 0