A very minor code change could enable the project to be built as a framework



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"


#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.


Hi @mihail_minkov

Thank you for the details and feedback! We’re always looking for feedback from our community to help drive our product growth. I’m working on passing this feedback on to our SDK team. While I cannot provide any guarantees or a timeline, please keep an eye out for future updates to MoPub in Cocoapods.

If you have any other questions or feedback, please feel free to reach out to us at support@mopub.com.

Thank you.