Upload
ryan-wu
View
283
Download
0
Embed Size (px)
DESCRIPTION
Example script : https://gist.github.com/flyworld/11164353
Citation preview
iOS Automatically Build 2014@flyworld
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.
!
!
!!!!!!!
Code Signing Required
Project Build Progress
Build ArchiveByte Code Product.app
Product.ipa or
Product App
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
Package to IPA
xcrun
-sdk : iphoneos
PackageApplication : Archive File (.app)
-o : Output name
-sign : Developer’s name
-embed : Provisioning Profile
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
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