I am trying to use the mopub-ios-sdk project in an app that uses Cocoapods for dependency management.
The Podfile has the “use_frameworks!” directive. More info: https://blog.cocoapods.org/CocoaPods-0.36/
MoPub doesn’t build successfully, because of an error here:
The “FABKitProtocol.h” and “Fabric+FABKits.h” files aren’t found when building as a framework.
One suggestion is to simply change:
#import "FABKitProtocol.h"
#import "Fabric+FABKits.h"
into:
#import <FABKitProtocol.h>
#import <Fabric+FABKits.h>
I tested this. MoPub compiles and still shows ads.
In any case, please consider supporting the “use_frameworks!” option of Cocoapods, as more and more useful pods require to be built as frameworks. For one thing, all IBDesignable functionality requires it.