Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Blakeasd

macrumors 6502a
Original poster
Dec 29, 2009
643
0
Hello,
I would like to use a private API in the next version of my Mac app. Will the use of private APIs cause an app to be rejected?
 

MisterMe

macrumors G4
Jul 17, 2002
10,709
69
USA
Hello,
I would like to use a private API in the next version of my Mac app. Will the use of private APIs cause an app to be rejected?
You posted this question in the wrong area. The Programming area is where it should have been posted. It is the Programming area where you may get help.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
You posted this question in the wrong area. The Programming area is where it should have been posted. It is the Programming area where you may get help.

I agree with you that it's in the wrong area. But we helped him anyway.

Oh and to the OP: I had an app update for iOS rejected as the automatic scanning software that Apple use found a single private API call...
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Oh and to the OP: I had an app update for iOS rejected as the automatic scanning software that Apple use found a single private API call...

Same for me, although it was a while ago.

Of course, I doubt their software has any way to determine whether you're loading a framework manually via NS/CFBundle and access its classes/functions :)
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Same for me, although it was a while ago.

Of course, I doubt their software has any way to determine whether you're loading a framework manually via NS/CFBundle and access its classes/functions :)

Assuming it scans for the calls statically then building the method name from two or more string parts, turning that into a selector and then calling it would also confuse the scanner. As all I wanted to do was terminate my iOS app on startup when some internal files were somehow corrupted on install (should never happen, I've never seen it, but you never know) I just removed it and replaced it with an alert telling the user to re-install :)
 

gnasher729

Suspended
Nov 25, 2005
17,980
5,565
Same for me, although it was a while ago.

Of course, I doubt their software has any way to determine whether you're loading a framework manually via NS/CFBundle and access its classes/functions :)

But that would get you into very dangerous territory. Let's say this app goes on the App Store, Apple pays you $100,000 for the revenue, Apple releases 10.7 and thousands complain to Apple that your app is crashing. And Apple finds you were using a private API that is gone. So they only accepted your app and paid you $100,000 because you cleverly hid the fact that you were breaking the App Store rules.

At that point you'd need a very good lawyer.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.