$30 off During Our Annual Pro Sale. View Details »

Lightning Talk: Ruby Toolbox For iOS developer

Lightning Talk: Ruby Toolbox For iOS developer

運用Ruby-based的工具加速iOS行動應用開發

Hsien Chun Lin

December 08, 2012
Tweet

Other Decks in Programming

Transcript

  1. Ruby Toolbox For iOS
    developer
    運⽤用Ruby-based的⼯工具加速iOS⾏行動應⽤用開發
    - Anderson Lin

    View Slide

  2. Greetings.
    The name is Anderson.
    (@trisix / [email protected])

    View Slide

  3. A Dicer.
    http://tw.polydice.com/

    View Slide

  4. Basically an guy.
    iOS App developer and designer.

    View Slide

  5. Currently working on iCook愛料理 iPhone & iPad App
    http://icook.tw/mobile

    View Slide

  6. Used to try to learn Ruby to build game using
    RPGMaker & RGSS...not went well though.
    When I was little...
    http://zh.wikipedia.org/wiki/RGSS

    View Slide

  7. But it’s not the end.

    View Slide

  8. Third party libraries.

    View Slide

  9. Great!

    View Slide

  10. Dependency.

    View Slide

  11. Well, not that great.

    View Slide

  12. Copy the source code directly? Bad to maintain.

    View Slide

  13. $ git submodule ?
    Basically OK, yet sometimes it’s like some people’s
    Facebook relationship status:
    It’s complicated.

    View Slide

  14. “Hey, where’s Bundler for iOS
    development?”
    Read this before...

    View Slide

  15. There you go!
    http://cocoapods.org/
    https://github.com/CocoaPods/CocoaPods

    View Slide

  16. Install it
    $ gem install cocoapods
    Edit the Podfile to add whatever you want to use
    $ subl Podfile
    For first time usage
    $ pod setup
    Install it
    $ pod install
    open the xcodeworkspace
    $ open thisisatest.xcworkspace

    View Slide

  17. How about provision files and devices management?

    View Slide

  18. https://github.com/mattt/cupertino
    cupertino

    View Slide

  19. Install it
    $ gem install cupertino
    Login to the Apple dev center
    $ ios login
    After that you can do something like
    $ ios devices:list
    To get current device list. Or
    $ ios devices:add "iPad 2"=def456 "iPad
    3"=ghi789 ...
    To add new devices. Or you can do other things.

    View Slide

  20. Notice this:
    currently cupertino is not support for multiple account.

    View Slide

  21. How about beta test?

    View Slide

  22. TestFlight
    Upload with:
    Web Inteface
    or Native Mac Applicaiton
    https://testflightapp.com/

    View Slide

  23. How about a CLI?

    View Slide

  24. https://github.com/mattt/shenzhen

    View Slide

  25. Install it
    $ gem install shenzhen
    Build ipa for your project
    $ ipa build
    Ship it!
    $ ipa distribute
    or
    $ ipa distribute:hockeyapp
    $ ipa distribute:testflight

    View Slide

  26. Notice this:
    you still need type the API Token and the Team Token while
    you are using shenzhen.

    View Slide

  27. Thanks.

    View Slide