Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Problem adding files #40

Closed
ad-moh opened this issue Jul 22, 2015 · 10 comments
Closed

Problem adding files #40

ad-moh opened this issue Jul 22, 2015 · 10 comments
Labels

Comments

@ad-moh
Copy link

ad-moh commented Jul 22, 2015

I'm having problems adding the files to my swift project. I keep getting errors in the short hand class. Can you please explaining a little bit more on how to integrate it?
Thank you

@bre7
Copy link
Collaborator

bre7 commented Jul 22, 2015

Hi ad-moh, you don't need to add files manually anymore. Are you using CocoaPods? If so, add this to your Podfile:

use_frameworks!

pod 'ChameleonFramework/Swift'

If you aren't, remember you need to add both the Swift and Objective-C folders to your project.

@vicc vicc added the Question label Jul 22, 2015
@ad-moh
Copy link
Author

ad-moh commented Jul 22, 2015

No, I'm not using CocoaPods. You mean the folder named pod or the whole project folder?
Sorry i'm still new at this.

@bre7
Copy link
Collaborator

bre7 commented Jul 22, 2015

The folder named Pod. If you are still getting an error, post the message if you can.

@ad-moh
Copy link
Author

ad-moh commented Jul 22, 2015

Yeah that's what I did but I keep getting errors in the ChameleonShorthand.swift file.
screen shot 2015-07-22 at 8 30 20 am

@bre7
Copy link
Collaborator

bre7 commented Jul 22, 2015

I'll give it a try later and let you know.

@ad-moh
Copy link
Author

ad-moh commented Jul 22, 2015

Alright. Thank you

@bre7
Copy link
Collaborator

bre7 commented Jul 22, 2015

Nevermind, the issue is because swift isn't loading the objc classes. You need to add the imports to your Bridging header.

So edit your bridging header and add the following:

#import "Chameleon.h"

@ad-moh
Copy link
Author

ad-moh commented Jul 22, 2015

Oh yeah, it didn't create a bridging header when i added. I guess I have to do that manually

@ad-moh
Copy link
Author

ad-moh commented Jul 23, 2015

It worked. You guys have a really cool library here. Thanks for everything

@vicc
Copy link
Owner

vicc commented Jul 24, 2015

Awesome!

@vicc vicc closed this as completed Jul 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants