ALAlertBanner icon indicating copy to clipboard operation
ALAlertBanner copied to clipboard

Crashers in Release scheme

Open semerda opened this issue 10 years ago • 4 comments

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.

semerda avatar Jan 23 '15 04:01 semerda

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:

islaitin avatar Feb 09 '15 08:02 islaitin

I am also facing same problem. Everything works fine in debug scheme. Waiting for solution.

RPethani avatar Feb 19 '15 09:02 RPethani

same issue here

masterkain avatar Mar 06 '15 16:03 masterkain

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;

EwyynTomato avatar Apr 23 '15 07:04 EwyynTomato