-->

iOS app - Non-Public API usage- app references non

2019-08-09 09:56发布

问题:

After I have uploaded app to itunes i get mail saying that my app using non public api methods- cancelButtonClicked, setResult:

But cancelButtonClicked is used as IBAction method for various buttons and searchBar. Do I need to rename it? Also, this is very common please suggest..

For setResult: Method I have not used this method any where also, I haven't found this method used in my complete workspace.

I have used multiple third party APIs some of them are below:

  • AFNetworking
  • Google Maps SDK
  • Google Places SDK
  • Google Analytics
  • RSK Image Cropper
  • Facebook SDK
  • Twitter SDK
  • ASIHTTP
  • MBProgressHud
  • Reachability
  • SDWebImageCache

Please suggest what I can do.

Also, I am using Xcode 6.3.2 with deployment target iOS 8.0. In some SO's answers it was suggested to use Xcode 6.0.1 but I can't use it as Google Maps SDK POD suggested to use Xcode6.3 or later.

Any help appreciated.

回答1:

You should make a search in your project directory for the method's call that you mentioned. This is a command line script to search in the whole project. This will return where these methods are called, and then you should modify the name of the method or update the library/framework containing the call.

grep -Rnis 'cancelButtonClicked' *
grep -Rnis 'etResult:' *