Posts

Post not yet marked as solved
12 Replies
1.7k Views
My Xcode cloud build have been failing for some time due to failure to install brew for cocoapods. (my only dependency here is cocoa pods) I followed the instruction in the documentation here And have a simple ci_post_clone script here #!/bin/sh brew install cocoapods pod install The error are typically in the brew install part and often refer to a HTTP 500 error, an example pasted below, but they are not always consistent and happening at different random place in the brew update. What should I add to my ci script to make brew and cocoapods work? Example of error (never exactly the same) Initialized empty Git repository in /Users/local/Homebrew/.git/ Updating Homebrew... error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 fatal: expected flush after ref listing ==> Tapping homebrew/core Cloning into '/Users/local/Homebrew/Library/Taps/homebrew/homebrew-core'... error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 fatal: error reading section header 'shallow-info' Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /Users/local/Homebrew/Library/Taps/homebrew/homebrew-core --origin=origin --template=` exited with 128. Error: Failure while executing; `/Users/local/Homebrew/bin/brew tap homebrew/core` exited with 1. /Volumes/workspace/repository/ci_scripts/ci_post_clone.sh: line 5: pod: command not found
Posted
by brice.
Last updated
.
Post not yet marked as solved
3 Replies
1.9k Views
Now Xcode Server and macOS server are separateI am trying to setup xcode server on my mac using Xcode 9. I got it all working, and integration passes.The problem is that the web service of Xcode Server is messing up the web services of macOS Server.macOs Server starts httpd with config in /Library/Server/Web/Config/apache2/httpd_server_app.conf, where i have a few virtual host setup, but after I setup xcode server it also started to have an httpd run without argument which takes over from the macOS Server httpd.It seems to use the use a config source from /etc/apache2/httpd.conf, which is the configuration of the default web server on mac, not the one from macOS Server./etc/apache2$ ls -l other/.conf lrwxr-xr-x 1 root wheel 62 Nov 5 12:05 other/httpd_xcs.conf -> /Library/Developer/XcodeServer/Configuration/httpd_os_xcs.conf -r--r--r-- 1 root wheel 194 Jul 15 23:45 other/php7.confI could move and link the httpd_xcs.conf into the config of the macOS Server config, but I can't stop the httpd process without argument (using /etc/apache2) to start and it interfers with the main config and no web site works (Always goes to the xcode server website...)the file /System/Library/LaunchDaemons/org.apache.httpd.plist has the key Disabled True. SO I am not sure what the right way to get httpd to work properly with Xcode Server and macOS server.Any pointers how to make it work?thanks!I am using:macOS 10.13.1 (Build 17B48)Server 5.4 (Build 17S1207)Xcode Version 9.1 (9B55)
Posted
by brice.
Last updated
.