ryanmaxwell / RMUniversalAlert

Wrapper class for UIAlertView / UIActionSheet / UIAlertController for targeting all iOS versions.
MIT License
260 stars 54 forks source link

Linking issue after CocoaPods 1.0.0 update #19

Closed AllDmeat closed 8 years ago

AllDmeat commented 8 years ago

So here's what I've done:

  1. Updated CocoaPods to stable 1.0.0 release;
  2. Removed workspace and Pods folder;
  3. Executed pod install;
  4. Cleaned product and build folder.

After that project won't compile — RMUniversalAlert.m throws error:

'UIAlertView+Blocks/UIAlertView+Blocks.h' file not found

If i replace imports of UIAlertView, UIActionSheet and UIAlertController like this — everything compiles just fine:

@import UIAlertView_Blocks.UIAlertView_Blocks;
@import UIActionSheet_Blocks.UIActionSheet_Blocks;
@import UIAlertController_Blocks.UIAlertController_Blocks;

But that's dirty.

Is there a clean way to fix this? Is it CocoaPods related or what?

Asking you, because such error appeared only on your library.

Thanks. Been using your libs for a long time.

ghost commented 8 years ago

+1

aman-clickapps commented 8 years ago

+1, please fix this please....

fkmhrk commented 8 years ago

I updated import sections in Pods/RMUniversalAlert/RMUniversalAlert.m and build process succeeded.

#import "UIAlertView+Blocks.h"
#import "UIActionSheet+Blocks.h"
#import "UIAlertController+Blocks.h"
enricsa commented 8 years ago

+1

kevin-hirsch commented 8 years ago

+1

ghost commented 8 years ago

+1

ryanmaxwell commented 8 years ago

fixed in 0.8