Don't know if the problem is related but maybe it can be a solution for anyone pulling the hairs like me.
In my case, I have a project with a lot of targets. Each target is a customisation of that base project which is a `Cocoa Touch Static Library` and the targets, `Applications`. Even if the `main` file is added into the library compilation, but not in each target, that error message appears. So what I did? Manually added the `main` file to each target in the `Compile Sources` section and bingo, all fine.