I have a simple app which uses whirlyglobe framework (2.2). Otherwise, it is pretty basic program with Apple frameworks.

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.

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 error message

有帮助吗?

解决方案

Solved. Here is what I did:

1) Searched in github repository of WhirlyGlobe and found the file that uses the functions which caused issue. 2) I did not need the functionality provided by the file that had the functions. 3) Removed the references (class instantiation) to the file from my project.

其他提示

That's actually part of the KissXML framework and the implementation is in there. 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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top