1

这是否允许在 iOS 上将 dlopen() 和 dlsym() 用于系统库(例如:libresolv)?

感谢您提前回答!

4

1 回答 1

0

Technically, and theoretically, it is allowed: it's in the POSIX API. (You can use any function from the C and POSIX standard library.)

However, dlopen() is often used for "cheating", i. e. for circumventing Apple's static analysis (because then you can obfuscate the name of private functions in private frameworks), so if they don't bother finding out what exactly you are using it for, then your app may be rejected. So you'd better directly link against the library instead.

于 2013-06-14T07:06:06.160 回答