简体   繁体   English

Whirlyglobe私有API在提交应用程序时抱怨

[英]Whirlyglobe private API complain during app submission

I have a simple app which uses whirlyglobe framework (2.2). 我有一个使用whirlyglobe框架(2.2)的简单应用程序。 Otherwise, it is pretty basic program with Apple frameworks. 否则,它是带有Apple框架的相当基本的程序。

When I tried to validate the app (and during the distribution, Xcode complains that my app is using private API; specifically it calls "rootElement", and "attributeForFont:". I suspect these functions are part of WhilyGlobe component distribution. 当我尝试验证应用程序时(以及在发行过程中,Xcode抱怨我的应用程序正在使用私有API;特别是它调用了“ rootElement”和“ attributeForFont:”。我怀疑这些功能是WhilyGlobe组件发行的一部分)。

What is the easiest way to remove those files from the framework? 从框架中删除这些文件的最简单方法是什么? Do I need to have the source and compile the framework myself? 我是否需要拥有源代码并自己编译框架? Or is there a simpler way? 还是有更简单的方法?

xcode错误消息

Solved. 解决了。 Here is what I did: 这是我所做的:

1) Searched in github repository of WhirlyGlobe and found the file that uses the functions which caused issue. 1)在WhirlyGlobe的github存储库中搜索,找到使用引起问题的函数的文件。 2) I did not need the functionality provided by the file that had the functions. 2)我不需要具有功能的文件所提供的功能。 3) Removed the references (class instantiation) to the file from my project. 3)从我的项目中删除了对该文件的引用(类实例化)。

That's actually part of the KissXML framework and the implementation is in there. 那实际上是KissXML框架的一部分,并且实现在那里。 I suspect Apple's test is in error. 我怀疑苹果的测试是错误的。

In any case, if you're not using the WMS functionality, you can probably drop it out just fine. 无论如何,如果您不使用WMS功能,则可以将其丢弃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM