How to import a Swift framework globally?

You should be able to import it globally by adding @_exported before the import.

@_exported import MyPodModuleName

However, like the other answer mentions, doing that for an entire module is not recommended, because it introduces implicit coupling between modules.

Hence instead try something like:

import Foundation

@_exported import class MyModuleName.MyClassName
@_exported import class MyModuleName.MyOtherClass

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)