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

Use NS_ENUM with typedef #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

heqichang
Copy link

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
Copy link

iSeekF commented Jun 16, 2015

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

@heqichang
Copy link
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
Copy link

Phenmod commented Sep 16, 2015

Cannot thanks any more

@dodyw
Copy link

dodyw commented Sep 17, 2015

@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.

None yet

5 participants