In Objc based module if we add swift file and build, it is failing with error -
The reason is that we are using BUILD_LIBRARY_FOR_DISTRIBUTION=YES for building module. Ideally it should be used when we build for framework. For static libraries it should be default. Some details can be found here and here .