Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your app contains non-public API usage - submit app

I am trying to submit an application to Itunes connect with XCode. I get this:

Your app contains non public API usage. Please review the errors, correct them and resubmit your application. The app references non-public selectors in Payload/myapp.app/setSoundsEnabled:

What should I do?

like image 833
Katerina Avatar asked Dec 07 '25 19:12

Katerina


1 Answers

I got the similar issue once. These errors take place because of the old SDK of some third party frameworks that implements "setSoundsEnabled" method. In order to remove these errors, you need to follow the following steps:

  1. Open the terminal window. Run the following command:

    cd (drag and drop your project folder here) Your_Project_Path
    

    Now, the current working directory will be your project folder.

  2. Find all the SDK that uses "setSoundsEnabled" method using following commands:

    $ find . | grep -v .svn | grep "\.a" | grep -v "\.app" | xargs grep setSoundsEnabled
    

    and

    grep -lr "setSoundsEnabled" * | grep -v .svn | grep -v .md
    
  3. After getting the list of frameworks, search for the frameworks that MATCHES the query. Upgrade those frameworks.

  4. Re-validate the app.

like image 199
Cityzen26 Avatar answered Dec 10 '25 10:12

Cityzen26



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!