7
iOS Automatically Build 2014 @flyworld

iOS Automatically Build with Cocoapods 2014

  • Upload
    ryan-wu

  • View
    283

  • Download
    0

Embed Size (px)

DESCRIPTION

Example script : https://gist.github.com/flyworld/11164353

Citation preview

Page 1: iOS Automatically Build with Cocoapods 2014

iOS Automatically Build 2014@flyworld

Page 2: iOS Automatically Build with Cocoapods 2014

iOS Auto Build with Cocoapods

What do we have under the XCode Project ?

Build Targets / Build Configuration / Schemes

What’s XCode workspace (*. xcworkspace) ?

We’re using Cocoapods http://cocoapods.org/ for managing all the library dependencies.

!

!

Page 3: iOS Automatically Build with Cocoapods 2014

!!!!!!!

Code Signing Required

Project Build Progress

Build ArchiveByte Code Product.app

Product.ipa or

Product App

Page 4: iOS Automatically Build with Cocoapods 2014

Build & Archive xcodebuild

-scheme: Target scheme name

-derivedDataPath : derived data folder

-configuration : Debug / Release

-workspace : The workspace folder (*.xcworkspace)

After running this command, you can find Build/Products/{conf}-{sdk}/YourApplicaion.app under your derivedDataPath

Page 5: iOS Automatically Build with Cocoapods 2014

Package to IPA

xcrun

-sdk : iphoneos

PackageApplication : Archive File (.app)

-o : Output name

-sign : Developer’s name

-embed : Provisioning Profile

Page 6: iOS Automatically Build with Cocoapods 2014

Easy Way?

This is my IPA build script for Xcode workspace

Simply update the build.confing file and put it with build.sh under your project next to your XCode workspace

https://gist.github.com/flyworld/11164353

Page 7: iOS Automatically Build with Cocoapods 2014

Reference

xcodebuildhttps://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html

xcrunhttp://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/xcrun.1.html

Automating Over The Air Deployment for iPhone http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/

My Gisthttps://gist.github.com/flyworld/11164353