7 ms·
I'm with you one this, I don't even know if Apple would approve apps using NS prefix without their consent.
by phatbyte 14y ago
I'm with you one this, I don't even know if Apple would approve apps using NS prefix without their consent.
- pkaler 14y agoApple does not inspect your source code when an App is submitted. They only inspect the binary and the metadata of an App.
- terhechte 14y agoNot true, they scan the binary for symbols. I.e. they check for any usage of private api's. I doubt that they will reject an app just because of their usage of NS.. classes, but on the other hand if the NS... class accidentally has the same name of another internal private Apple API, the app will be rejected (Has happened to other developers already).
- pkaler 14y agoYou should be stripping your binary of symbols. (-strip-all, -s) I used the word "inspect" carefully. Apple is probably looking for calls to private APIs by looking at the addresses of functions called in your binary with the addresses of private APIs. They are probably looking for method swizzling of Cocoa APIs by looking at the address passed into method_exchangeImplementations, class_replaceMethod, etc. Looking at the symbols within a binary is probably more effort than it is worth and probably isn't going to be very effective.
- natesm 14y agoThe names of all of your classes and messages can be found with `strings` anyways, if they did want to reject based on those.