Coder Social home page Coder Social logo

sugarti's Introduction

#####SugarTi adds some sugar to the Titanium CLI syntax.

I'm lazy and the Titanium CLI has too many options I have to type, besides that it doesn't install (yet) the app directly on the iOs device but uses iTunes. So I made this to save some typing and time :)

It's inspired by clti and uses a version of fruitstrap

#####Features

For now it only builds and runs in the iPhone simulator (no iPad or android) and deploys to an iOs device. See ToDo.

The script also tries to find the provisoning profile to use when deploying to device so there is no need to type it yourself.

#####Install

npm install -g sugarti

#####Usage

You will need to be in the root folder of your project, where tiapp.xml resides.

Dans-MacBook-Pro:app Dan$ sti

Available commands:

  i5             Run project in iPhone 5 simulator - iPhone (Retina 4-inch).
  i4             Run project in iPhone 4 simulator - iPhone (Retina 3.5-inch).
  i3             Run project in iPhone 3 simulator - iPhone.
  di             Deploy to device without using iTunes :)

  ri             Hot RELOAD the app in simulator - Only the changes in JS files will have effect!
  
  clean          Clean the iOs project and start fresh.

so

sti i5

should build and run the project in the iPhone5 simulator.

sti ri is a very handy command, as it will restart only the application without rebuilding or even restarting the simulator. However, only the changes in the javascript files will have effect. If you modify/add assets or settings in tiapp.xml you will have to make a new build (sti with i3,i4 or i5).

#####Troubleshooting Sometimes fruitstrap cannot install the app on the device.

[ !! ] Unable to install package. (e800002d)

Usually disconnecting the device and connecting it again, followed by a sti di does the trick.

If this doesn't work, clean the project and try again.

#####Even more troubleshooting SugarTi is tested with titanium CLI 3.1.0 only. So please check that you have this version installed.

Also, all the build commands are wrappers around titanium and if SugarTi fails please check that Titnaium CLI works wih direct commands first.

#####ToDo

  • Add more iOS options (iPad, iOS version )
  • Add Android
  • Add (maybe) SDK to use.

#####License MIT

#####Pull requests welcome ;)

sugarti's People

Contributors

mattapperson avatar rborn avatar stephenfeather avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sugarti's Issues

Change ios version

Have been testing iOS7 with a few apps, but STI now only builds on ios7 i have to launch titanium studio which still uses ios6. Is there a way to switch between the two using sti?

How to enter developer cert?

Trying to install using sti di but I get up to:

Name of the iOS Developer Certificate to use:

When I enter the name of the cert nothing happens, am i missing something on how to enter it?

How to specify valid profile and iOS certificate

Hey Dan,

I'm trying to use sti di command, but found two problems. This is sure related to Titanium CLI but sincerely I didn't found a good documentation and you probably have face the issue before.

First issue is that the valid profile detected automatically is not the one I want to use. Any chance to show a list or specify the correct one?

The second issue is that I don't know how to specify the name of the iOS Developer Certificate. I tried several ways, copying the name as it appears in the keychain, but any of them work. So, what does it expect to receive when it asks:

Name of the iOS Developer Certificate to use:

Any command sample would be really appreciated!

Would be great if we could create a sti.conf file or similar located in the project folder with all the params, so it take default values from there. I would try to do it by myself but first I need to understand how it works! :)

thx

Cli 3.1.2 Update breaks CLI

Ok, reading the description, I should expect this, but just reporting it here. It all works find up until it tries to copy the xcode build, then just hangs.

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.