您的应用包含非公开API使用 - 提交应用 [英] Your app contains non-public API usage - submit app

查看:245
本文介绍了您的应用包含非公开API使用 - 提交应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向Itunes提交与XCode连接的应用程序。我明白了:

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

您的应用包含非公共API使用情况。请检查错误,更正错误并重新提交申请。
应用程序引用Payload / myapp.app / setSoundsEnabled中的非公共选择器:

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:

我该怎么办?

推荐答案

我有一次类似的问题。由于某些第三方框架的旧SDK实现了setSoundsEnabled方法,因此会发生这些错误。要删除这些错误,您需要按照以下步骤操作:

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. 打开终端窗口。运行以下命令:

  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.

查找所有使用setSoundsEnabled方法的SDK都使用以下命令:

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

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

grep -lr "setSoundsEnabled" * | grep -v .svn | grep -v .md


  • 获取框架列表后,搜索< MATCHES 查询。升级这些框架。

  • After getting the list of frameworks, search for the frameworks that MATCHES the query. Upgrade those frameworks.

    重新验证应用程序。

    这篇关于您的应用包含非公开API使用 - 提交应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆