★ TouchArcade needs your help. Click here to support us on Patreon.

App Scanner, find private APIs before submitting!

10-10-2010, 01:41 PM
#1
App Scanner, find private APIs before submitting!

Hi All,

Just wanted to let everyone know that there is a new dev tool available that lets devs find private APIs in their code before they submit to the iOS review team. Currently it will only match up method signatures, not instance variables, but that functionality is on the way. Check it out if it's something that will save you some time and frustration.

http://www.chimpstudios.com/appscanner/

10-10-2010, 09:42 PM
#2
Joined: Dec 2008
Location: The Land of The Rising Sun
Posts: 146
At first I was sarcastically going to say, "Why not just not write code that uses private APIs"?

But you might want to make use of some third-party library or something that you don't have complete control over, so, yes, this could be very useful. Nice work!

Developer of Petri. Available now on the iTunes Store.

These days I work with Tonchidot on Sekai Camera.
10-10-2010, 10:48 PM
#3
Quote:
Originally Posted by gillygize View Post
At first I was sarcastically going to say, "Why not just not write code that uses private APIs"?

But you might want to make use of some third-party library or something that you don't have complete control over, so, yes, this could be very useful. Nice work!
That's part of the intent of this application is to catch items that the developer may miss because it is part of open source code.

Also, it can be pretty easy to name a method that will accidentally overlap a private api method signature. Presto, even though there is a different implementation of that method the mere fact it shares a duplicate signature is grounds for rejection.
10-11-2010, 07:10 AM
#4
Joined: Apr 2009
Location: Pennsylvania
Posts: 1,006
Nice tool!

BTW, it's not just 3rd party stuff that folk need to worry about. There are a handful of standard OpenGL calls that work just fine on the iPad but are not officially supported by Apple. Apple considers these private APIs and will reject any updates to applications that use them.

Quote:
Originally Posted by gillygize View Post
At first I was sarcastically going to say, "Why not just not write code that uses private APIs"?

But you might want to make use of some third-party library or something that you don't have complete control over, so, yes, this could be very useful. Nice work!