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

19808 build warnings with new Xcode (11.0 (11A420a)) #566

Closed
leechoohyoung opened this issue Sep 23, 2019 · 17 comments
Closed

19808 build warnings with new Xcode (11.0 (11A420a)) #566

leechoohyoung opened this issue Sep 23, 2019 · 17 comments

Comments

@leechoohyoung
Copy link

leechoohyoung commented Sep 23, 2019

New Issue Checklist

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

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

Issue Info

Info Value
Platform ios
Platform Version 12.2 (16E227)
Masonry Version 1.1.0
Integration Method cocoapods

Issue Description

When I build my project with new Xcode (11.0 (11A420a)),
generate too many build warnings like below...(real device and simulator)

ld: warning: instance method 'remakeConstraints:' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'updateConstraints:' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'makeConstraints:' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'attribute' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'safeAreaLayoutGuideRight' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'safeAreaLayoutGuideLeft' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'safeAreaLayoutGuideBottom' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'safeAreaLayoutGuideTop' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'centerYWithinMargins' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'centerXWithinMargins' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'trailingMargin' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'leadingMargin' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'bottomMargin' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'topMargin' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'rightMargin' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'leftMargin' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'lastBaseline' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'firstBaseline' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'baseline' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'centerY' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'centerX' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'height' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'width' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'trailing' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'leading' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'right' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'bottom' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'left' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'top' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'remakeConstraints:' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'updateConstraints:' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'makeConstraints:' in category from /.../MySomeObject.o conflicts with same method from another category
ld: warning: instance method 'attribute' in category from /.../MySomeObject.o conflicts with same method from another category

...19808 warnings!!!

Please check this out

@ZombieMK
Copy link

I have the same problem

@leechoohyoung
Copy link
Author

ok, so far, I found a little hint.
Changing build type of workspace(new build system to legacy build system), xcode reported 230 build warnings.

@ZombieMK
Copy link

Yes, same for me... Not a fix per se, but a start :)

@frank-du
Copy link

i have the same problem with 2w+ warnings😁

@meloanyang
Copy link

I have the same problem , too;

@babucha
Copy link

babucha commented Sep 30, 2019

Same here

1 similar comment
@terence612
Copy link

Same here

@Jimmygio
Copy link

Jimmygio commented Oct 4, 2019

Same here +1

@Jimmygio
Copy link

Jimmygio commented Oct 7, 2019

I find a solution.

The problem is happen in "View+MASShorthandAdditions.h" and "NSArray+MASShorthandAdditions.h" exist "@implementation" code.

So I create "View+MASShorthandAdditions.m" and "NSArray+MASShorthandAdditions.m" by myself, and move "@implementation" code to the two .m files, then the compare warning is down!

@frank-du
Copy link

I find a solution.

The problem is happen in "View+MASShorthandAdditions.h" and "NSArray+MASShorthandAdditions.h" exist "@implementation" code.

So I create "View+MASShorthandAdditions.m" and "NSArray+MASShorthandAdditions.m" by myself, and move "@implementation" code to the two .m files, then the compare warning is down!

Worked.

warpling added a commit to warpling/Masonry that referenced this issue Oct 19, 2019
warpling added a commit to warpling/Masonry that referenced this issue Oct 19, 2019
warpling added a commit to warpling/Masonry that referenced this issue Oct 19, 2019
@warpling
Copy link

Thank you @Jimmygio! Made a branch with the fixes for anyone else still moving off Masonry.

warpling added a commit to warpling/Masonry that referenced this issue Oct 21, 2019
warpling added a commit to warpling/Masonry that referenced this issue Oct 21, 2019
warpling added a commit to warpling/Masonry that referenced this issue Oct 21, 2019
warpling added a commit to warpling/Masonry that referenced this issue Oct 21, 2019
@songwentong
Copy link

me too

@songwentong
Copy link

@warpling thank you !

@vbonluk
Copy link

vbonluk commented Nov 27, 2019

same problem

@JackyGohSG
Copy link

o .m

Only the @implementation code or all the lines below it as well? Quite new to Xcode.

@JackyGohSG
Copy link

o .m

Only the @implementation code or all the lines below it as well? Quite new to Xcode.

Nvm just saw warpling commit and understand it better. Cheers

@zhenghongfeng
Copy link

I find a solution.
The problem is happen in "View+MASShorthandAdditions.h" and "NSArray+MASShorthandAdditions.h" exist "@implementation" code.
So I create "View+MASShorthandAdditions.m" and "NSArray+MASShorthandAdditions.m" by myself, and move "@implementation" code to the two .m files, then the compare warning is down!

Worked.

thank you very much!

zcwlwen pushed a commit to zcwlwen/Masonry that referenced this issue Dec 22, 2020
Wei18 added a commit to Wei18/Masonry that referenced this issue Dec 22, 2022
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