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

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


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-webviewcordova plugin add cordova-plugin-ionic-webview@4.1.0


I got a similar problem:

ITMS-90338: Non-public API usage - The app references non-public selectors in MyAppName: _setAlwaysRunsAtForegroundPriority:.

And the issue was caused by the following plugin: cordova-plugin-ionic-webview

To solve the issue update to the latest version with the following commands:

cordova plugin rm cordova-plugin-ionic-webviewcordova plugin add cordova-plugin-ionic-webview@latest

You can read more about it here: https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/209


This worked

The problem is related to webview.

cordova plugin rm cordova-plugin-ionic-webviewcordova plugin add cordova-plugin-ionic-webview@latest