fork() failed (1: Operation not permitted)

2019-02-24 23:36发布

问题:

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.