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

Installed the pod but what should I import? #53

Closed
agisilaos opened this issue Oct 25, 2016 · 5 comments
Closed

Installed the pod but what should I import? #53

agisilaos opened this issue Oct 25, 2016 · 5 comments

Comments

@agisilaos
Copy link

Hey there,

I'm trying to use this framework. I installed the pod (Swift 3.0) and now I'm trying to use the actual framework. When I write in my class file: let device = Device() it comes up with an error: "Use of an unresolved identifier "Device". So my question is how I can fix that?

@dennisweissmann
Copy link
Collaborator

Good question! Maybe I should add that to the Readme.

import DeviceKit should do.

@agisilaos
Copy link
Author

I tried that too but Xcode does not recognize it

@dennisweissmann
Copy link
Collaborator

Hm that's weird, can you try it in a clean project? Also make sure to open the workspace and not the project.

@agisilaos
Copy link
Author

it doesn't work in a clean project either... So weird. What could I possibly do wrong?

@dennisweissmann
Copy link
Collaborator

Sorry for coming back to you so late :( To be honest I have no idea why that wouldn't work, I confirmed locally that it actually does work :(

Steps:

  1. Create an empty Xcode project (iOS, Single View App)
  2. cd to the project dir
  3. pod init

  4. add pod 'DeviceKit', '~> 1.0' under # Pods for ProjectName
  5. pod update

  6. Open the workspace, go into the AppDelegate.swift file, add import DeviceKit and let device = Device()
  7. Hit cmd+b -> Build successful

I'm really sorry, I have no idea what's going on on your machine :( Maybe make sure you're on the latest version of CocoaPods.

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

2 participants