fork() failed (1: Operation not permitted)

笑着哭i 提交于 2019-12-20 02:34:07

问题


I'm new to ios. I'm facing a problem about permission. fork() failed (1: Operation not permitted)

I want to build an open source library implemented in c for ios. Can "fork()" function be used on ios?? If It could, how can I solve that problem??


回答1:


No. Every iOS application is a separate process. You can create new threads, not a new process.

Also see Porting an application with fork() to pthread_create()




回答2:


fork() can only be used on jailbroken phones.



来源:https://stackoverflow.com/questions/12088155/fork-failed-1-operation-not-permitted

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