ALAlertBanner
ALAlertBanner copied to clipboard
Crashers in Release scheme
In develop scheme all works great but once I flip it to release mode the invoking of the banner crashes the app without generating any error logs. Any tips? I looked at zombie objects and found nothing.
We're experiencing the same when running on 64-bit device & build. Does not crash in debug scheme nor 32-bit build. EXC_BAD_ACCESS in drawRect:
I am also facing same problem. Everything works fine in debug scheme. Waiting for solution.
same issue here
This is happening because:
You're using cocoapods to grab the library like this:
pod 'ALAlertBanner', '~> 0.3'
which pulls from tag '0.3.1' (07c77f7), but It is behind a couple commits.
The reason of crash is in this line, using float instead of CGFloat on ARM64 devices.
Furthermore, this issue has been fixed in HEAD commit from this pull request, but currently not tagged for cocoapods.
A quick fix for this issue is simply replace your pod with:
pod 'ALAlertBanner', :git => "https://github.com/alobi/ALAlertBanner.git", :commit => '756cea2d05'
If you're not using cocoapods, simply pull the newest commit or replace the line in ALAlertBanner.m:
float h, s, b, a;
to
CGFloat h, s, b, a;