fork() failed (1: Operation not permitted)

2019-02-24 22:45发布

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??

2条回答
迷人小祖宗
2楼-- · 2019-02-24 23:28

fork() can only be used on jailbroken phones.

查看更多
可以哭但决不认输i
3楼-- · 2019-02-24 23:34

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()

查看更多
登录 后发表回答