dlopen() from sandbox in iOS 10 is blocked

廉价感情. 提交于 2019-12-21 02:40:13

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!