important note: this only works for projects that do not use swift, see comment below
I just met the same issue and resolved it by making the following change –
If you used to have Swift files in your project but then removed them, you only need to set “Embedded Content Contains Swift Code” to NO in Build Options.