How to Resolve App Validation "The App References Non-Public Selectors in Payload/Myapp.App/Myapp: _Setalwaysrunsatforegroundpriority:"

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

A potential workaround until it will be officially fixed:

I searched the resulting code by Ionic build for applicationNameForUserAgent and isMainFrame—other strings did not match anything—and found one instance for isMainFrame (line 107 was found) in WebViewDelegationHandler and three instances of applicationNameForUserAgent in CAPBridgeViewController (lines 115-120) (all searches in the xCode workspace). I removed all of these lines and the build was magically published.

I found on StackOverflow some thread from 2019 that also blamed (then) cordova-web-view-plugin.

I'm not sure about how bad it is to remove those lines of code, yet at least it offers some sort of a solution, if at all.

I tested on my app and did not observe any flaws.

the app references non-public selectors in payload/appname.app/appname: _terminateWithStatus

You can't remove this warning. You may get this warning just for using a selector in your own code or third party code(may be because of facebook sdk) that has the same name as some selector that is marked as non-public. Happens to me all the time. Never got rejected for it. So you won't worry about this warning. See this Ref. , Ref2

And also see this stack question to avoid rejection, find and remove unwanted framework.



Related Topics



Leave a reply



Submit