问题
i'm using dlopen() to load dynamic framework from documents directory, it's working good below iOS10, but in iOS10 it does not work anymore,and console's log is:
file system sandbox blocked mmap() of '/var/mobile/Containers/Data/Application/71EB4588-A83F-4AF0-9409-DD09AFB2CA77/Documents/MyDylib.framework/MyDylib'
how can i solve this problem?
回答1:
in iOS10 the framework cannot save to the Documents dir or subdir. you must put the framework under to the YouAppName.app/
来源:https://stackoverflow.com/questions/39461798/dlopen-from-sandbox-in-ios-10-is-blocked