dlopen() from sandbox in iOS 10 is blocked

2020-06-06 00:47发布

问题:

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/



标签: ios10 dlopen