Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 22, 2011, 03:22 PM   #1
Blakeasd
macrumors 6502a
 
Join Date: Dec 2009
Private API Use?

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?
Blakeasd is offline   0 Reply With Quote
Old Jan 22, 2011, 03:23 PM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by Blakeasd View Post
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?
Yes. 100% absolutely. It's explicitly against the app store rules.
robbieduncan is offline   0 Reply With Quote
Old Jan 22, 2011, 06:39 PM   #3
Daveoc64
macrumors 601
 
Join Date: Jan 2008
Location: Bristol, UK
It's one of the rules:

"2.5
Apps that use non-public APIs will be rejected"

But Apple does bend them sometimes.
__________________
Nexus 5 32GB Black (Three UK) | Nexus 7 (2012) | Kindle Paperwhite (2013)
iPhone 4 32GB
White MacBook (Late 2007)
Windows 8.1 | iCloud, Dropbox, Spotify Premium
Daveoc64 is offline   0 Reply With Quote
Old Jan 22, 2011, 06:50 PM   #4
MisterMe
macrumors G4
 
Join Date: Jul 2002
Location: USA
Quote:
Originally Posted by Blakeasd View Post
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.
__________________
Neither a borrower nor a lender be
For loan oft loses both itself and friend
William Shakespeare from Hamlet
MisterMe is offline   0 Reply With Quote
Old Jan 23, 2011, 04:17 AM   #5
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by MisterMe View Post
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...
robbieduncan is offline   0 Reply With Quote
Old Jan 23, 2011, 04:35 AM   #6
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
Quote:
Originally Posted by robbieduncan View Post
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
kainjow is offline   0 Reply With Quote
Old Jan 23, 2011, 04:38 AM   #7
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by kainjow View Post
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
robbieduncan is offline   0 Reply With Quote
Old Jan 23, 2011, 04:57 AM   #8
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by kainjow View Post
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.
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Using Twitter API hassoon iPhone/iPad Programming 4 Oct 25, 2013 01:45 PM
iOS API - Help! freemusic86 iPhone/iPad Programming 2 Apr 30, 2013 03:28 PM
Skitch Like API? loon3y iPhone/iPad Programming 1 Jan 28, 2013 06:39 AM
Foursquare API KimGysen iPhone/iPad Programming 2 Jan 16, 2013 07:46 AM
API Wish Time! iammike1 iOS 6 0 Jun 18, 2012 06:07 AM

Forum Jump

All times are GMT -5. The time now is 08:41 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC