In Azure DevOps Server (TFS) pipeline in Xcode build and test mobile applications (iPhone)

Outline

Xcode is Apple macOS system development based desktop and mobile applications are the main IDE tools. Use Azure DevOps Server (formerly known as TFS) pipelines pipelining functions in the system can be easily integrated Xcode project, using a web browser on DevOps server, to achieve a key to compile, test, and publishing work, save the test publishing process complex processes greatly improve the efficiency of the test publisher, and improve the efficiency of collaboration between development and test teams.
This article has been IOS mobile banking mobile terminal in a bank for example, describes how continuous integration and test system test Xcode project in the Azure DevOps Server.

Prerequisites

Since the closure of Apple's technology, the development of mobile applications must be completed compiling, debugging and packaging tasks on macOS system, thus achieving the compiler Xcode project must first install a macOS agent, or can not complete Xcode automatically compile and packaging functions.
I blog "installed on macOS Apple Azure DevOps Server (TFS) Proxy" ( https://www.cnblogs.com/danzhang/p/11954476.html ) a paper describes in detail the procedure to install Apple's proxy.

Configuration pipeline

After the macOS proxy Azure DevOps Server installed, you can use pipelining feature to configure the automatic packaging and testing functions.
You can use a script or yaml traditional window interface Xcode to build a new pipeline. The following example we use the window interface to be more intuitive explanation of the configuration information Xcode.

  1. A new line, select the compiled code may be used TFVC, Azure Git, gitHu, gitLab, SVN, and other source code library
  2. Select the agent pool that we configured in the prerequisites macOS agent pool
  3. XCode select a template, Azure DevOps Server will automatically add tasks associated with Xcode, in our example program, the operation is more crucial (Xcode archive in the figure below) Xcode package task attention following several settings: Operation : means Xcode tasks, such as build, archive; here to fill archive, refers to the need to generate all the files packaged workspace or project path : refers to the work area xcode project configuration file (for code base, it is actually a document folder, which contains profile compiled, compiler Xcode project start file) program : means Xcode project specific items; may be a mobile application, may be an independent database library. Signature style : You can choose a manual signature, the default signature, automatic signature; selecting my sample project manual signature, signature information actually used Xcode project configuration. Create an application package: After selecting create application package can be automatically generated mobile application ipa file
    image
    image





  4. Ipa file settings how to store the compiled
    my project implementation process, as customers need to ipa file posted to a web server, for testers click Download. I additionally equipped with an FTP server, use an FTP task in the pipeline, ipa file upload to an FTP server, Web browser for download.

------------------------------------------------------------

http://www.cnblogs.com/danzhang/   DevOps MVP Zhang Hongjun

------------------------------------------------------------

Guess you like

Origin www.cnblogs.com/danzhang/p/11967344.html