Xcode bot does not see repository branches

387 Views Asked by At

After updating the XCode to version 11.4 (11E146), I stopped seeing repository branches in the bot settings. But I see these repository branches in Source Controll Navigator. Does anyone know how I can fix it?

bot settings

2

There are 2 best solutions below

3
Jerrot On

This issue was resolved in Xcode 12.


OLD answer & workaround for Xcode 11.4 - 11.x:

Unfortunately it's a known issue in the Xcode 11.4 release. https://developer.apple.com/documentation/xcode_release_notes/xcode_11_4_release_notes

Find this Stack Overflow answer to change the branch manually via the Xcode Server API: https://stackoverflow.com/a/42573925/1372065

1
Gurubaran On

Looks like this is fixed in XCode12, In case you still need to use XcodeServer on Xcode 11.4 - 11.5 then follow the below steps

In the final step, add a pre-integration script and add the below git commands

git pull
git checkout `your-branch-under-test`
git branch