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

Adam Cox picture Adam Cox · Jan 25, 2019 · Viewed 9.5k times · Source

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 to resolve, I was able to upload app to App Store.

Does anyone know where it is documented or have any insights on how to resolve?

Thanks.

Answer

Duncan picture Duncan · Jul 8, 2019

Expanding on @Véger Lóránd answer:

The bug was re-introduced in the 4.1.1 version. Installing the latest version will get your app rejected. The solution for now is:

cordova plugin rm cordova-plugin-ionic-webview
cordova plugin add [email protected]