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

import fail on Swift project #61

Closed
retsohuang opened this issue Jun 10, 2015 · 10 comments
Closed

import fail on Swift project #61

retsohuang opened this issue Jun 10, 2015 · 10 comments

Comments

@retsohuang
Copy link

screen shot 2015-06-10 at 10 12 55 pm

The error cause by this line
screen shot 2015-06-10 at 10 17 06 pm

Change to #import <RMActionController/RMActionController.h> solve the issue

P.S.Same issue at RMPickerViewController

@CooperRS
Copy link
Owner

Are you a bridging header?

@retsohuang
Copy link
Author

I use as framework. So it should allow me import as module.

@ivangodfather
Copy link

import RMActionController

@retsohuang retsohuang changed the title Build fail on Swift project import fail on Swift project Jun 10, 2015
@retsohuang
Copy link
Author

@CooperRS @ivangodfather I modified issue description, hope it will clear the problem.

@ivangodfather
Copy link

@retsohuang seems it doesnt work with swift,i opened another issue.

@CooperRS
Copy link
Owner

I'll look into it :)

@CooperRS
Copy link
Owner

Hmm, 3 options:

  1. #import "RMActionController.h"
  2. #import <RMActionController.h>
  3. #import <RMActionController/RMActionController.h>

The first option is the only option when manually installing RMDateSelectionViewController. The second option only works when installing using CocoaPods without frameworks. And the third option works for all CocoaPods installations (framework based and library based).

As I do not recommend manually installing RMDateSelectionViewController/RMPickerViewController (no automatic dependency management), I think I'm going with option 3.

Are there any options I missed? In particular, an option, that works under all circumstances?

@retsohuang
Copy link
Author

Other objc pods going with option 3 (e.g. JSQMessagesViewController)

@CooperRS
Copy link
Owner

I'll go with option 3, too. It's already changed in the current git head but I'll also release a version 2.0.1. Should be available soon.

@retsohuang
Copy link
Author

Cool, 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

No branches or pull requests

3 participants