问题
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