发行Apple Store:非公开API“setMaximumLength,MaximumLength” [英] Issue Apple Store: non-public API "setMaximumLength, MaximumLength
问题描述
我在'Apple Store上发布应用程序时遇到问题; Apple拒绝发布该应用程序,因为它找到了非公开API的引用,具体为:setMaximumLength:,MaximumLength。不幸的是,分析源代码,我无法找到这些Apis的调用。如何解决这个问题?
--- APPLE MESSAGE ---
- 5性能:软件要求
性能 - 2.5.1 您的应用程序使用或引用了
以下非公开API:
setMaximumLength:,maximumLength
不允许使用非公共API在App Store上,因为如果这些API发生变化,它可能会导致糟糕的用户体验。
---结束的消息---
Versione XCode 8.0
Versione Xamarin.Forms2.3.2.127
Xamarin for Visual Studio 4.2
Xamarin.iOS 10
解决方案使用Apple的XCode命令行工具,特别是
strings
或otool
查看二进制文件并查看哪些可能调用该私有API 。
在这篇文章中发现:
https://discussions.apple.com/thread/3838251?tstart=0 :
此外,一个或多个上述API可能驻留在应用程序中包含的静态库中,如果您无法访问库的源代码,则可以使用strings或otool命令行搜索已编译的二进制文件工具strings工具可以输出库调用的方法列表,otool -ov将输出Objective-C类结构及其定义的方法,这些技术可以帮助您缩小问题代码所在的范围。
I'm having problems with the publication of an App on 'Apple Store; Apple has refused to publish the App because it found references to non-public APIs, specifically: "setMaximumLength :, MaximumLength". Unfortunately, analyzing the source code, I was not able to find the calls to these Apis. How can I solve this problem?
--- APPLE MESSAGE ---
- 5 PERFORMANCE: SOFTWARE REQUIREMENTS Performance - 2.5.1
Your app uses or references the following non-public APIs:
setMaximumLength:, maximumLength
The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
--- END OF THE MESSAGE ---
Versione XCode 8.0
Versione Xamarin.Forms2.3.2.127
Xamarin for Visual Studio 4.2
Xamarin.iOS 10
解决方案You can use Apple's XCode command line tools, notably
strings
orotool
to look inside binaries and see which may be calling that private API.Found in this post: https://discussions.apple.com/thread/3838251?tstart=0:
"Additionally, one or more of the above-mentioned APIs may reside in a static library included with your application. If you do not have access to the library's source, you may be able to search the compiled binary using "strings" or "otool" command line tools. The "strings" tool can output a list of the methods that the library calls and "otool -ov" will output the Objective-C class structures and their defined methods. These techniques can help you narrow down where the problematic code resides."
这篇关于发行Apple Store:非公开API“setMaximumLength,MaximumLength”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!