We can add GitHub repo to our Xcode Service. Add your Git RepoĪssuming you are team of developers working on the GitHub repo. Once provisioned devices connected to the Mac it will start appearing in the device list. We can add real devices to the Server as well. We need provisioning profiles, certificated to configure this. Now it’s time to configure details of our development team with our Apple ID. It isn’t good idea to give that user Administrative rights because it’s not required. We have already created “Xcode Server” user but it can be any user. Now we can select use here to run out test or Integrations triggered from Xcode “bot”. Now Select ‘Xcode’ service from the Server app and Choose Xcode 8 app installed on Mac. Next Step is to configure ‘Xcode’ service from macOS Server to run our integrations. Now we have various setting like choosing Xcode, setting up user permissions, configure development team and development devices. Xcode Integrations can be triggered manually, after code change or periodically. Now that developers working on Git repository can trigger integrations by creating Xcode Bots. MacOS Server has lots of other services but we need ‘Xcode’ service which is a ‘Continuous Integration’ service to automate static analysis of code, build app, run tests, archive app, report code coverage, report test results, send notifications etc etc. Now, macOS Server will take some time configuring and then we will be able connect to macOS Server. We will use same user to run test to avoid user swapping. There will be an option to create new user. Now next step is to ‘Select User” to run Xcode Bot Integrations, we can use same use which is logged in but we have a option to use another user ‘Xcode Server”. Next step is macOS Server will ask to “Choose Mac”, select “This Mac” as we are setting the same Mac for Xcode Server You can read more about macOS Server services in the tutorials. Once launched it for the first time, it will show you entire tutorial how to use new macOS Server for all services. Once downloaded, we can launch “Server” app from the Applications Or Mission Control. Setup macOS ServerĪssuming, you have already downloaded Xcode 8 on the Mac also downloaded macOS Server 5.2 App which might cost some money but if you already have developer account then you might able to redeem that product for free. Now that, we will see how to setup macOS server for our fresh Mac or Mac Mini. Setting new user seems fairly easy in the Xcode Server. Xcode Server will have now it’s own user called Xcode Server which give you full control with password as any normal macOS user. It also prevent blaming for the broken build. Xcode Server now re-integrate the your project if it fails using same revision. We cab now configure bots instead of changing code. Xcode Server will send email to person who broke build. We will have now control over how to set email contains. MacOS Server will now have two types of triggers, script triggers and email triggers. This isn’t new but Xcode 8 will now allow us set environmental variable without creation of extra schemes. New macOS Server will have following features. This means using there are some significant changes in this release which can affect current CI system with Xcode Server. Xcode bots running on OSX Server and Xcode Server are broken when server app is upgraded to 5.2 i.e macOS Server.macOS Server isn’t support old Swift version.macOS Server isn’t supporting old Xcode versions.Another Development Mac from which we can trigger Xcode bots (optional for this tutorial)Īpple has renamed their old OSX Server to macOS Server which has lot of new things like profile manager, Caching Server, NFS, Xsan 5 etc etc but let’s focus on what’s new for Xcode Service.Xcode Project repository hosted on Github (optional for the tutorial).Mac or Mac Mini with macOS Server 5.2 app installed.In order to setup Continuous Integration using macOS Server and Xcode Service, we need Run Bot Integrations and Analyse Results.Create a Xcode bot with example of XCFit Swift Package on Github.Setup Development Xcode to use Xcode Server on macOS Server.Configure Xcode to use Xcode Service of macOS Server.Anyway this is small tutorial aims to setup a Mac to run as a macOS Server with Xcode Service and Setup basic Xcode Bots for the macOS Server with Xcode 8 to perform Continuous Integration. However Apple’s guide still reads as OSX Server than macOS Server but Apple has released new macOS Server (5.2) with some improvements in the Automated Xcode Builds. You might be wondering what’s the point of this post if everything is documented in the guide. Apple has very comprehensive documentation on Xcode Server and Continuous Integration with OSX Server (app) and Xcode Server (Xcode within the server app).
0 Comments
Leave a Reply. |