Categories - iOS开发

2017

awakeFromNib 整理摘录

10月 24 · 3 min

Swift 脚本编写

4月 02 · 1 min

发布自己的pods到CocoaPods trunk

3月 15 · 1 min

2016

Xcode Server 教程4: 证书和描述文件

原文翻译地址

honza dvorsky
Xcode Server Tutorials: 4. Certificates & Provisioning Profiles
21. october 2015

This article is Part 4 of a whole series called Xcode Server Tutorials. Check out Part 3 first if you haven’t already. New posts are always tweeted by me (@czechboy0) on Twitter.

Welcome back! Today we’ll cover the last piece of making Xcode Server a viable CI tool for shipping apps: code signing. Code signing is an important part of the outstanding security of iOS, Mac, Watch and now TV apps on Apple’s platforms. However, managing code signing is still an involved process for beginners, even though Apple has been working hard to abstract away many of the details with recent releases of Xcode. Unfortunately, those improvements haven’t really trickled down to Xcode Server yet, so we’ll need to get our hands dirty to make it archive apps for us and let us test on real iOS devices. Shall we?

8月 17 · 20 min

Xcode Server 教程3: 预编译以及编译后脚本

原文翻译地址

honza dvorsky
Xcode Server Tutorials: 3. Prebuild & Postbuild Scripts
17. august 2015

This article is Part 3 of a whole series called Xcode Server Tutorials. Check out Part 2 first if you haven’t already. New posts are always tweeted by me (@czechboy0) on Twitter.

Great to see that you’re hungry for more Xcode Server goodies! And boy, do I have plenty of them for you today. We’ll talk all about prebuild and postbuild scripts. These might initially sound boring, but soon you’ll see that they are in fact very interesting - they allow you to plug in tools like CocoaPods and fastlane, which can easily revolutionize your complete testing and deployment workflow. From messaging you on Slack when your build finishes to automatically uploading builds to the App Store, nothing is impossible. So let’s get started!

8月 17 · 21 min

Xcode Server 教程2: 集成

原文翻译地址

前言

第一部分中,我们成功安装了 Xcode Server 并创建了第一个 Bot。现在是时候深入了解集成结果了。

Xcode Server 的强大之处在于其美观且实用的结果可视化界面。通过这些界面,我们可以:

  • 📊 查看详细的测试结果
  • 📈 分析代码覆盖率
  • 🔍 检查提交历史
  • 📝 查看构建日志

8月 17 · 8 min

Xcode Server 教程1:入门

原文翻译地址

这篇文章是 Xcode Server 系列教程的第一部分,带你入门 Apple 官方的持续集成解决方案。

前言:为什么需要持续集成?

想象一下这样的开发场景:你的团队成员花费数周时间开发一个新功能分支,却没有及时合并其他人的修改。当产品经理催促交付时,他创建一个 Pull Request。大家快速浏览代码(因为它包含了数千行新增代码),草草完成代码审查后合并上线。一切看似完美?

现实中的问题

事实并非如此。你兴致勃勃地开始新功能开发,期待着喝彩和掌声。然而在 Twitter 上消磨时光后,你发现没有对新功能进行充分测试,应用在 32 位设备上崩溃了。

这不是虚构的故事,而是许多团队的真实写照。大多数团队都没有实施持续集成(CI),要么觉得团队规模太小不需要,要么太忙没时间搭建。

持续集成是一种软件开发实践,强调频繁地集成代码变更,并通过自动化测试确保代码质量。

在上面的例子中,持续集成的两个核心原则都被打破了:

  1. 了解变更内容 - 团队不知道合并了什么(一个 bug 导致应用在 32 位设备崩溃)
  2. 频繁集成 - 没有及时合并代码,导致大量差异,无法进行有效的代码审查

Xcode Server 简介

如果你的团队还没有使用 CI,或者现有的 CI 工具效果不佳,这篇文章就是为你准备的。今天将展示如何使用 Apple 官方的持续集成服务器——Xcode Server(简称 XCS)。

8月 17 · 14 min

0 %