问题
Does Apple allow the usage of sysctl.h within iOS applications?
PS: App Scanner, a third party tool that checks code for possible private-API usage seems to think it's okay.
Note: There is one more question like this : How can I know if I'm using private frameworks?
回答1:
With the usual disclaimer that nobody can tell you what a reviewer will do, I can say for sure that there are apps in the store that use sysctl
functions.
(Minor point: Simply including a header isn't a problem since symbols there shouldn't be visible in your app unless they're used...it's the things you use that might get flagged rather than what's included.)
来源:https://stackoverflow.com/questions/32140756/does-apple-allow-the-usage-of-sysctl-h-within-ios-applications