particle-iot/ios-app-example-carthage

Name: ios-app-example-carthage

Owner: Particle

Description: Basic example iOS app with Particle SDK & Device setup library integrated as frameworks via Carthage dependency manager

Created: 2016-04-08 22:41:06.0

Updated: 2017-08-01 13:32:48.0

Pushed: 2018-01-03 18:30:07.0

Homepage: null

Size: 6897

Language: Swift

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Particle

Particle Cloud SDK and Device Setup Library basic iOS app example - using Carthage dependecies

Platform license Carthage compatible

This app is meant to serve as basic example for using the Particle Cloud SDK and Device Setup Library in the Carthage dependecies form. This takes a different approach than using Cocoapods and is now the recommended way to use Particle SDKs as it will ease complex/swift-containing builds.

To get this example app running, clone it, open the project in XCode and:

  1. Flash the firmware.c firmware to a photon under your account, use Build - you can setup a new one also from within the app (device setup library)
  2. Set it's name to the constant deviceName in the testCloudSDK() function
  3. Set your username/password to the appropriate constants, same place
  4. Go the project root folder in your shell, run the setup shell script (under the /bin folder) which will build the latest Particle SDK Carthage dependencies
  5. Drag the 3 created .framework files under /Carthage/Build/iOS to your project
  6. Go to XCode's target general settings and also add those frameworks to “embedded binaries”
  7. Run and experiment!

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.