解决办法:

For me none of the previous solutions worked. We discovered that there is an “Embedded Content Contains Swift Code” flag in the Build Settings that needs to be set to YES. It was NO by default!