Skip to content

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.

5 participants