Skip to content

Use NS_ENUM with typedef - #70

Open
heqichang wants to merge 1 commit into
kentnguyen:masterfrom
heqichang:master
Open

Use NS_ENUM with typedef #70
heqichang wants to merge 1 commit into
kentnguyen:masterfrom
heqichang:master

Conversation

@heqichang

Copy link
Copy Markdown

Without typedef will cause duplicate symbol error if multiple import UIViewController+KNSemiModal.h in static library project. I don't know why. But add typedef at before of NS_ENUM will be work.

@iSeekF

iSeekF commented Jun 16, 2015

Copy link
Copy Markdown

thanks, heqichang. solved
I met the same error, it works fine in iOS8, but in iOS7 duplicate symbol _KNSemiModalTransitionStyle

@heqichang

Copy link
Copy Markdown
Author

I found a reason why cause this error. My Xcode (Version 6.3.1) project template set GCC_NO_COMMON_BLOCKS flag to YES. If set this flag to NO, this error also be solved.

@Phenmod

Phenmod commented Sep 16, 2015

Copy link
Copy Markdown

Cannot thanks any more

@dodyw

dodyw commented Sep 17, 2015

Copy link
Copy Markdown

@heqichang solution work for me.
Set GCC_NO_COMMON_BLOCKS = NO

Thanks.

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

Successfully merging this pull request may close these issues.

5 participants