Continuous Integration for Xcode projects?

2019-01-12 14:44发布

After using Hudson for continuous integration with a prior project, I want to set up a continuous integration server for the iPhone projects I'm working on now. After doing some research it looks like there aren't any CI engines designed specifically for Xcode, but one guy has had success using Cruise Control combined with the xcodebuild CLI tool. Has anyone here tried this? Are there any CI engines that work well with Xcode projects?

I'm probably going to give Cruise Control a try. I'll post an answer with my findings.

9条回答
淡お忘
2楼-- · 2019-01-12 15:06

I think you should be still able to use Hudson. Hudson is very flexible and allows you also to use shell scripts for building: Shell Scripts and Windows Batch Commands

Just enter there xcodebuild. Take a look at the xcodebuild man page to see the options of xcodebuild.

查看更多
在下西门庆
3楼-- · 2019-01-12 15:07

Resurrecting this thread. I didn't find a satisfactory solution to getting automated XCode builds with unit tests on a build server so I did some investigating and coding. The result is this blog post explaining it all and this Ruby script that converts OCUnit output from xcodebuild to the XML format that JUnit uses for test reports. The build server I picked was Hudson.

Update 3/2 2012: I have updated this to use some custom shell scripts for building and running. Available here. It's good not only for continuous integration, but also building from command line on your own machine.

查看更多
我欲成王,谁敢阻挡
4楼-- · 2019-01-12 15:13

I'm successfully using Hudson on the mac with xcodebuild. With the release of the 3.0 iPhone sdk you have compete control over the target, configuration and sdk that the project is to be built against.

It's as simple as creating a build step in hudson and telling xcodebuild to build the project:

xcodebuild -target "myAppAppStore" -configuration "DistributionAppStore" -sdk iphoneos2.1

The upfront work has paid off for me as my builds just work without any additional thought. I've written a detailed description on my blog if anyone is interested.

iPhone app distribution made easy

查看更多
看我几分像从前
5楼-- · 2019-01-12 15:23

Jenkins works fine. You can Either build your xcode project by writing your own shell script then let Jenkins run it, or you can also use xcode plugin.

But you have to be aware of the authority problem. With little tweaks in Jenkins configurations, you'll be able to manage your CI server in very little time.

查看更多
太酷不给撩
6楼-- · 2019-01-12 15:25

If you don't mind living on the cutting edge I've just committed an xcode builder for CruiseControl.

查看更多
SAY GOODBYE
7楼-- · 2019-01-12 15:27

Adium is using buildbot with Xcode quite effectively. We wrote a simple makefile that calls xcodebuild with the proper targets and configurations, but I'm pretty sure that's optional.

查看更多
登录 后发表回答