mrackwitz / MRProgress

Collection of iOS drop-in components to visualize progress
MIT License
2.55k stars 306 forks source link

Blur redraw hangup ! #10

Closed g8king closed 10 years ago

g8king commented 10 years ago

Hi, I encounter difficult when I try to test the MRProgress.

I create a single view type project with a button to launch MRProgress. But the program always hangup at MRBlurview.m

The log: 2013-11-11 17:37:00.610 MRPTEST[4650:3403] -[UIImage mr_applyBlurWithRadius:tintColor:saturationDeltaFactor:maskImage:]: unrecognized selector sent to instance 0x109049c30 2013-11-11 17:37:00.612 MRPTEST[4650:3403] *\ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImage mr_applyBlurWithRadius:tintColor:saturationDeltaFactor:maskImage:]: unrecognized selector sent to instance 0x109049c30'

But the Example runs well. I had checked all the build config. But I still can't solve the problem.

Could you kindly to help the issue?

Thanks

mrackwitz commented 10 years ago

So, I guess you are using MRProgress as static library? You should add -ObjC to Other Linker Flags in the Build Settings tab in Xcode.

thomey commented 10 years ago

I'm having the same issue. MRProgress installed with Source files works fine, but then I switched over to CocoaPods installation, and now I get the same error message as above.

pod 'MRProgress', '~> 0.4'
pod install
#import "MRProgress.h"

Error message: *\ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImage mr_applyBlurWithRadius:tintColor:saturationDeltaFactor:maskImage:]: unrecognized selector sent to instance 0x10b2a4040'

I tried adding -ObjC to Other Linker Flags, but that didn't help..

thomey commented 10 years ago

Nevermind. For anyone else having the same/similar problem, make sure you have added $(inherited) to alle levels of your target's Other Linker Flags

mrackwitz commented 10 years ago

No problem! You should ensure not removing $(inherited) on any target in any build setting accepting multiple values, if you don't want to explicitly exclude inherited values.