Code Monkey home page Code Monkey logo

Comments (5)

dennisweissmann avatar dennisweissmann commented on May 18, 2024

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

import DeviceKit should do.

from devicekit.

agisilaos avatar agisilaos commented on May 18, 2024

I tried that too but Xcode does not recognize it

from devicekit.

dennisweissmann avatar dennisweissmann commented on May 18, 2024

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

from devicekit.

agisilaos avatar agisilaos commented on May 18, 2024

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

from devicekit.

dennisweissmann avatar dennisweissmann commented on May 18, 2024

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.

from devicekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.