Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo crash when click Bacony Labels, and Margins #418

Open
2 tasks done
Huang-Libo opened this issue Jan 24, 2017 · 11 comments
Open
2 tasks done

Demo crash when click Bacony Labels, and Margins #418

Huang-Libo opened this issue Jan 24, 2017 · 11 comments

Comments

@Huang-Libo
Copy link

Huang-Libo commented Jan 24, 2017

New Issue Checklist

🚫 If this template is not filled out your issue will be closed with no comment. 🚫

  • I have filled out this issue template.
  • I have looked at the Documentation

Issue Info

Info Value
Platform iOS (iPhone 6s Plus)
Platform Version 10.2
Masonry Version v1.0.2
Integration Method Masonry iOS Examples

Issue Description

1

Demo crash when click Bacony Labels. Crash info:

Masonry iOS Examples[8240:3732271] -[UILabel mas_lastBaseline]: unrecognized selector sent to instance 0x10031f150

2017-01-24 15 19 07

2

Demo crash when click Margins. Crash info:

Masonry iOS Examples[8244:3733905] -[MASExampleMarginView mas_topMargin]: unrecognized selector sent to instance 0x127d31030

2017-01-24 15 21 07

@Huang-Libo Huang-Libo changed the title Demo crash when click Bacony Labels Demo crash when click Bacony Labels, and Margins Jan 24, 2017
@keepyounger
Copy link

+1

@Coder-ZJQ
Copy link

I have this issue too...
I think this may be caused by the below define comparison not worked...so the View+MASAdditions.m category won't implement some methods when source file is compiling, so caused the crash...

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)

But I have checked the Deployment Target is 8.0
image
and I has logged the result by:

NSLog(@"__IPHONE_OS_VERSION_MIN_REQUIRED:%d\n__IPHONE_OS_VERSION_MIN_REQUIRED>=80000:%@", __IPHONE_OS_VERSION_MIN_REQUIRED, (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) ? @"YES" : @"NO");

The log is :

__IPHONE_OS_VERSION_MIN_REQUIRED:80000
__IPHONE_OS_VERSION_MIN_REQUIRED>=80000:YES

It was strang,and i'm confused...

@pimacun
Copy link

pimacun commented Apr 11, 2017

Same issue to me.

@0xxxD
Copy link

0xxxD commented Apr 21, 2017

+1

3 similar comments
@willwl
Copy link

willwl commented May 10, 2017

+1

@oneGain
Copy link

oneGain commented May 19, 2017

+1

@zhihuihuashen
Copy link

+1

@senlinmuvs
Copy link

+1111111111111111111111111

@elbutchma
Copy link

+1

@Coder-ZJQ
Copy link

It's related to the #353 issue.
Just set the Pods -> Masonry -> iOS Deployment Target to the target what your project is.
Here is the screenshot, wish to be helpful to you...
image

@szhy888
Copy link

szhy888 commented Aug 15, 2017

###problem solved

github641 pushed a commit to github641/Masonry that referenced this issue Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests