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

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

问题描述

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

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天全站免登陆