Skip to content

HBehrens/pebblex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PebbleX Build StatusGem Version

A small command line tool to use Xcode and AppCode as development environment for the Pebble smartwatch SDK. It's based on the SDK's official pebble command that steadily evolves and might contain some of the functionality pebblex introduces by itself in the future. Ideally, there will be no need for pebblex at some point, anymore.

Background

The Pebble SDK comes with a powerful command line tool pebble to create, build and analyze pebble projects. Unfortunately, there's no development environment for the created project structure.

With the help of pebblex you can take advantage of Xcode or AppCode to develop your Pebble watch faces or apps directly from a convenient IDE. The command line tool will create a .xcodeproj that contains the needed search paths, resources and .c files to start right away. Each time you build your watch app from the IDE, all warnings and errors of the underlying ´pebble build` command will be presented right in the editor.

With AppCode (or the latest Xcode6-Beta) you can even build, install the .pbw to your watch, and look at the live logs as a one-step action directly from your IDE!

Installation

Install the Ruby Gem:

gem install pebblex

Usage

After creating a new pebble project (as described in the Pebble tutorial)

pebble new-project hello_world
cd hello_world

you can easily create an Xcode project file

pebblex xcode
open hello_world.xcodeproj

As part of the project file, pebblex xcode will create a target "Pebble" that builds your project right from the IDE. After each build, all warnings and errors will be propagated back right into your editor.

Lucky AppCode (and now Xcode6-beta) users: pebblex automatically creates a run configuration to build, deploy and look at the logs directly from the IDE! Make sure to set PEBBLE_PHONE before you push the play button.

Contributing

  1. Fork it ( https://github.com/HBehrens/pebblex/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make sure to test your changes (rake spec)
  4. Build and try PebbleX locally (rake build && rake install)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create a new Pull Request

About

enables Pebble development with Xcode and AppCode

Resources

License

Stars

Watchers

Forks

Packages

No packages published