Pixate / pixate-freestyle-ios

Pixate Freestyle for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assertions crashes

vguerci opened this issue · comments

Had some crashes with an app built on iOS7.1 when running on iOS8.
Looks like that UITableViewHeaderFooterView inner workings has changed in iOS8 (see #148), which resulted in assertions errors in NSObject+PXSubclass.m:63 :

if (![object isKindOfClass:[self superclass]]) {
    NSAssert(NO, @"Class %@ doesn't fit for subclassing.", [superClass description]);
    return;
}

Assertions = Exceptions = Crash if uncaught. A common practice in iOS/OSX development is simply to disable assertions at release, in order to avoid such crashes.

Just adding OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; to the Release configuration and generating the framework using ./scripts/build_framework.sh -c Release solves these potentials unwanted assertions crashs.

I just had the same issue..

I have also disabled the assertions.. is there any reason NSAssert was used here instead of a simple NSLog()?

I just had the same issue..but working with Xamarin... any idea?

I know it's been 2+ years, but did anyone find a fix?

Freestyle is officially dead. I have a project that is based on this one that includes fixes for the latest iOS https://github.com/StylingKit/StylingKit

@anton-matosov - Pixate freestyle crashes on ios 11 beta 10, Can i use https://github.com/StylingKit/StylingKit ? without code level changes ?

iOS 11 crash fix is available in the branch feature/PhotoUICompat, not released yet
use pod "StylingKit", :git => "https://github.com/StylingKit/StylingKit.git", :branch => "feature/PhotoUICompat" to install

I will try to release it as hotfix sometime soon

You are welcome.

Please feel free to reach me out
Either on StylingKit issues page https://github.com/StylingKit/StylingKit/issues
Or via StylingKit Slack https://stylingkit-slackin.herokuapp.com/

Hi @vinothbtechit
This fix is in the latest release. No need for this branch anymore.

Correct. You can see all releases and release notes here https://github.com/StylingKit/StylingKit/releases