The ios-maven-plugin plugs in to the Maven build lifecycle to automate compilation and deployment of iOS applications. This enables continuous integration for the iOS platform with ease.
Features
Compilation of iOS applications
Distribution of iOS applications
Versioning of iOS applications
One-step HockeyApp deployment
Packaging of iOS applications (.ipa & .dSYM) for deployment to Nexus/Artifactory
Available in the central repository
Requirements
The plugin relies on several tools that are only available on Mac OS X: xcodebuild, xcrun and agvtool.
To let ios-maven-plugin take care of versioning, be sure to set 'Versioning System' in the project settings to apple-generic
Maven Goals
ios:build
Compiles the application and generates an IPA package
Parameters
ios.sourceDir
ios.appName
ios.scheme
ios.sdk
ios.codeSignIdentity
ios.configuration
ios.version
ios.buildId
ios:deploy
Deploys the IPA package as well as the generated dSYM.zip to HockeyApp
Parameters
ios.sourceDir
ios.appName
ios.scheme
ios.sdk
ios.codeSignIdentity
ios.configuration
ios.version
ios.buildId
ios.hockeyAppToken
ios.releaseNotes
Getting started with ios-maven-plugin and Jenkins
Configure a basic POM for your iOS project or module and add:
To deploy to HockeyApp add -Dios.hockeyAppToken=YOUR_TOKEN as an argument and invoke mvn ios:deploy.
Tips
ios-maven-plugin sets the CFBundleShortVersionString to the Maven project version by default. You can override this behaviour by adding the -Dios.version argument.
To set CFBundleVersion to the svn revision or git commit add -Dios.buildId=$SVN_REVISION or -Dios.buildId=$GIT_COMMIT respectively.
请发表评论