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

duplicate symbol _KNSemiModalTransitionStyle in: #33

Closed
johnny51925 opened this issue Jul 12, 2015 · 4 comments
Closed

duplicate symbol _KNSemiModalTransitionStyle in: #33

johnny51925 opened this issue Jul 12, 2015 · 4 comments

Comments

@johnny51925
Copy link

Wt's going if I import the .h file

import <THDatePickerViewController.h>

It will build fail
duplicate symbol _KNSemiModalTransitionStyle in:

Why duplicate symbol?

@hons82
Copy link
Owner

hons82 commented Jul 12, 2015

That’s coming from the KNSemiModalView.
Did you import that twice?

Try to search for “KNSemiModalTransitionStyle” in your project. Maybe you’ll find that twice.
And check your build settings. Maybe you import that header twice.

Its hard to guess whats wrong in your project with that tiny bit of information

~Hons

On 12 Jul 2015, at 14:24, johnny51925 notifications@github.com wrote:

Wt's going if I import the .h file

#import

It will build fail
duplicate symbol _KNSemiModalTransitionStyle in:

Why duplicate symbol?


Reply to this email directly or view it on GitHub #33.

@hons82 hons82 closed this as completed Aug 20, 2015
@montegoulding
Copy link

I bumped into the same issue. The problem is in KNSemiModalViewController:

NS_ENUM(NSUInteger, KNSemiModalTransitionStyle) {
    KNSemiModalTransitionStyleSlideUp,
    KNSemiModalTransitionStyleFadeInOut,
    KNSemiModalTransitionStyleFadeIn,
    KNSemiModalTransitionStyleFadeOut,
};

should be

typedef NS_ENUM(NSUInteger, KNSemiModalTransitionStyle) {
    KNSemiModalTransitionStyleSlideUp,
    KNSemiModalTransitionStyleFadeInOut,
    KNSemiModalTransitionStyleFadeIn,
    KNSemiModalTransitionStyleFadeOut,
};

There is already an open PR on this kentnguyen/KNSemiModalViewController#71 but KNSemiModalViewController appears to be unmaintained as the last commit was well over a year ago...

@hons82
Copy link
Owner

hons82 commented Sep 27, 2015

Hmmm...
So there are basically two options

  1. we try to contact the developer to ask for an admin account on the repo
  2. I copy the repo and publish it under a new name

~hons

Sent from my iPad

On 27 Sep 2015, at 00:51, Monte Goulding notifications@github.com wrote:

I bumped into the same issue. The problem is in KNSemiModalViewController:

NS_ENUM(NSUInteger, KNSemiModalTransitionStyle) {
KNSemiModalTransitionStyleSlideUp,
KNSemiModalTransitionStyleFadeInOut,
KNSemiModalTransitionStyleFadeIn,
KNSemiModalTransitionStyleFadeOut,
};
should be

typedef NS_ENUM(NSUInteger, KNSemiModalTransitionStyle) {
KNSemiModalTransitionStyleSlideUp,
KNSemiModalTransitionStyleFadeInOut,
KNSemiModalTransitionStyleFadeIn,
KNSemiModalTransitionStyleFadeOut,
};
There is already an open PR on this kentnguyen/KNSemiModalViewController#71 but KNSemiModalViewController appears to be unmaintained as the last commit was well over a year ago...


Reply to this email directly or view it on GitHub.

@andres-cianio
Copy link

Cool @hons82 !
I'll move on to your repo as well :D
Thanks!

dielsonsales added a commit to Ilhasoft/KNSemiModalViewController that referenced this issue Jan 16, 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

4 participants