Questions tagged [non-public-selectors]

Apple rejects apps that use "non-public selectors." Non-public selectors are private APIs; app developers aren't allowed to use them.

Apple rejects apps that use "non-public selectors." Non-public selectors are private APIs; app developers aren't allowed to use them.

The rejection typically appears when uploading an app via Xcode, with an error like this:

The app references non-public selectors in Payload/XXXXXX.app/XXXXXX:

If you're very lucky, you may find that despite the scary error message in Xcode, Apple will accept your binary anyway, and it will appear in App Store Connect for you to submit it.

Barring that, you may be able to search your own source code to find references to these forbidden selectors. But, it's much more common to find that some third-party library (a CocoaPod or Swift package you're using) is responsible.

Typically the only way to diagnose the issue is to try removing third-party libraries from your code, one by one, until the error goes away. Then, once you've found the library responsible, file a bug against the library developer. Once the library fixes the issue, you'll have to upgrade to a newer version of the library that stops using private selectors.

15 questions
24
votes
6 answers

How to resolve app validation "The app references non-public selectors in Payload/MyApp.app/MyApp: _setAlwaysRunsAtForegroundPriority:"?

Just days ago I successfully upload Ionic app to Apple Store, and on this day I am receiving validation warning: The app references non-public selectors in Payload/something.app/something: _setAlwaysRunsAtForegroundPriority: While I was unable…
Adam Cox
  • 3,341
  • 1
  • 36
  • 46
23
votes
6 answers

Non-public selectors in App?

I'm trying to submit an app via iTunes Connect. Xcode is throwing the following error: iTunes Store operation failed. The app referenced non-public selectors in Payload/Inflation Calculator.app/Inflation Calculator:…
15
votes
3 answers

The app references non-public selectors in Payload/ (App ID) : number, setNumber:

I'm trying to load the app, but it gives me this warning: The app references non-public selectors in Payload/ (App ID) : number, setNumber: In the app there are GAI and AAShareBubbles Frameworks.
5
votes
9 answers

The app references non-public selectors in Payload Capacitor.Framework STATE_ERROR.VALIDATION_ERROR.50

Today, I ran into a problem while trying to upload my capacitor app to the App Store. The app was published a few days ago and, to my understanding, nothing critical for the upload was not changed. The error I receive also does not shed any lights…
Lentyai
  • 968
  • 1
  • 10
  • 25
5
votes
4 answers

Non-public selectors

Got the following warning when trying to validate my binary. "The app references non-public selectors in Payload/app.app/app: cache, decoder, hasPhotoType" Problem is I don't know how to get to "Payload/app.app". Pretty sure I am not using…
ngzhongcai
  • 1,793
  • 3
  • 23
  • 31
5
votes
3 answers

iTune, App upload warning. App references non-public selectors in : productName

During the upload of my app on iTune connect I've got the following Warning : The app references non-public selectors in My_application.app/My_application: productName I've got some knowledge from those questions : The app references non-public…
Thomas Besnehard
  • 2,106
  • 3
  • 25
  • 47
4
votes
1 answer

The app references non-public selectors in Payload

I just tried to submit an app to the app store and we have received the following message when trying to upload the binary: "The app references non-public selectors in Payload ..............." How am I supposed to debug this. I have various…
KTas
  • 409
  • 1
  • 6
  • 17
3
votes
2 answers

Xcode Validation Error: non-public selectors

When I validate my project in Xcode I get an error: The app references non-public selectors in Payload/appname.app/appname:setResult: I've searched for setResult in my project, but there are no matches. I've submitted my app for review with this…
Edgar
  • 898
  • 2
  • 12
  • 36
2
votes
0 answers

the app references non-public selectors in payload/

I'm facing an issue at time of binary submission to app store from Application Loader. I'm submitting this app for second version. I received this error :the app references non-public selectors in payload/ appname .app/ appname…
2
votes
3 answers

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) ?
Md Mahbubur Rahman
  • 2,065
  • 1
  • 24
  • 36
1
vote
2 answers

The app references non-public selectors callWithArguments:, estimatedProgress, evaluateScript:

I'm attempting to upload an app to App Store Connect, but I'm getting this error when I try: The app references non-public selectors in Payload/MyApp.app/MyApp: callWithArguments:, estimatedProgress, evaluateScript:, getVersion,…
Dan Fabulich
  • 37,506
  • 41
  • 139
  • 175
0
votes
3 answers

ITMS-90338: Non-public API usage - The app references non-public selectors in [App]

I am building a Xamarin.Forms app that is building properly and deploying to the Apple App Store but keeps getting rejected for the following reasons: ITMS-90338: Non-public API usage - The app references non-public selectors in [App].Mobile.iOS:…
0
votes
0 answers

Non-public selectors when submitting iOS app

How can I debug this? The app references non-public selectors in Payload/MyApp.app/MyApp: log:level:flag:context:file:function:line:tag:format:args: I have uploaded 6 versions before without incident. Without changes, why would app validator…
Aron Nelson
  • 838
  • 1
  • 9
  • 17
0
votes
2 answers

non-public selectors in Payload

My app is rejected due to the reason " use of non-public APIs is not permitted in the App Store because it can lead to a poor user experience should these APIs change" My first version have been approved by app store without any reason and updating…
0
votes
1 answer

non-public selectors operationCompleted:

I am receiving following warning prior to submission to the AppStore The app references non-public selectors in Payload/myapp.app/myapp operationCompleted: I tried to search for the 'operationCompleted' method in my workspace but can't find…
Janusz Chudzynski
  • 2,700
  • 3
  • 33
  • 46