Search code examples
xcodeswiftcompiler-errorscocoapodsmbprogresshud

MBProgressHud Swift Compile Error when Archiving


I already finished my project, it works and runs perfectly on the simulator or in my own device. When I select to Archive the project to upload de build to Itunes Connect, I get all these compile errors

"Use of undeclared type MBProgressHUD" "Use of unresolved identifier MPProgressHUD"

And so on..

NOTE: I'm using CocoaPods for this library


Solution

  • What solved it for me was adding import MBProgressHUD in the classes where I use this library, not only in the Bridge-Header.h