Well, I’ve had similar problems to yours and I struggled to find what was wrong with my build settings.
Apart from what it’s been said before in this thread, please check the following build settings:
Linking
1. Dynamic Library Install Name Base -> @rpath 2. Runpath Search Paths -> $(inherited) @executable_path/../Frameworks @loader_path/Frameworks
Apple LLVM 8.0 - Language - Modules
3. Enable Modules (C and Objective-C) -> Yes
Swift Compiler - General
4. Install Objective-C Compatibility Header -> Yes 5a. Objective-C Bridging Header -> MyProduct-Bridging-Header.h IMPORTANT NOTE: if your bridging header is not in the same folder of your project file then you need to inform the Swift compiler where your bridging header resides. If it is inside a sub-folder in your project hierarchy, you need to add that sub-folder to your bridging header path like this:
5b. Objective-C Bridging Header -> MySubFolder/MyProduct-Bridging-Header.h
6. Objective-C Generated Interface Header Name -> MyFramework-Swift.h
If that does not help let us know, but I can tell you I was tripped because the Runpath Search Paths and Objective-C Bridging Header build settings were not properly set up. Perhaps you are being bitten by something similar.
HTH
João |