• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

brewinapps/ios-maven-plugin: Maven plugin to simplify automated builds and deplo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

brewinapps/ios-maven-plugin

开源软件地址(OpenSource Url):

https://github.com/brewinapps/ios-maven-plugin

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

ios-maven-plugin

Build Status

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

  1. Compilation of iOS applications
  2. Distribution of iOS applications
  3. Versioning of iOS applications
  4. One-step HockeyApp deployment
  5. Packaging of iOS applications (.ipa & .dSYM) for deployment to Nexus/Artifactory
  6. Available in the central repository

Requirements

  1. The plugin relies on several tools that are only available on Mac OS X: xcodebuild, xcrun and agvtool.
  2. 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

  1. ios.sourceDir
  2. ios.appName
  3. ios.scheme
  4. ios.sdk
  5. ios.codeSignIdentity
  6. ios.configuration
  7. ios.version
  8. ios.buildId

ios:deploy

Deploys the IPA package as well as the generated dSYM.zip to HockeyApp

Parameters

  1. ios.sourceDir
  2. ios.appName
  3. ios.scheme
  4. ios.sdk
  5. ios.codeSignIdentity
  6. ios.configuration
  7. ios.version
  8. ios.buildId
  9. ios.hockeyAppToken
  10. ios.releaseNotes

Getting started with ios-maven-plugin and Jenkins

Configure a basic POM for your iOS project or module and add:

<plugin>
    <groupId>com.brewinapps</groupId>
    <artifactId>ios-maven-plugin</artifactId>
    <version>1.2</version>
    <extensions>true</extensions>                
    <configuration>
        <codeSignIdentity>iPhone Distribution: ACME Inc</codeSignIdentity>
        <appName>AcmeApp</appName>
    </configuration>				                
</plugin>

Compile to verify

mvn clean compile

Allow jenkins to access your keychain

To sign the package, unlock the keychain on the jenkins node. The two commands below can be set up as a pre-build shell script.

security list-keychains -s ~/Library/Keychains/jenkins.keychain
security unlock-keychain -p CHANGEME ~/Library/Keychains/jenkins.keychain

Deploy to HockeyApp

To deploy to HockeyApp add -Dios.hockeyAppToken=YOUR_TOKEN as an argument and invoke mvn ios:deploy.

Tips

  1. ios-maven-plugin sets the CFBundleShortVersionString to the Maven project version by default. You can override this behaviour by adding the -Dios.version argument.
  2. To set CFBundleVersion to the svn revision or git commit add -Dios.buildId=$SVN_REVISION or -Dios.buildId=$GIT_COMMIT respectively.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap