How do I create a bot in Xcode? Getting "Creating a bot requires a project that is under source control."
This is hacky, but worked.
In Xcode I clicked the Source Control menu then checkout. I checked out my repository to a new folder and I was able to create my bot.
It seems adding the repository from the command line caused things to not look correctly configured to Xcode.
It seems like this issue happens when there isn't a remote named "origin", as that's what Xcode is looking for. When I renamed my remote to origin (in <ProjectRoot>/.git/config
), Xcode stopped complaining and let me add a bot through the Xcode UI.
After numerous trials I did the following steps to get the whole process to work:
- Connect a device to the server. Make sure it is active.
- Set up the server and ensure that the XCode service is active.
- Create a new project with a local GIT.
- In the
Source Control
menu, selectConfigure
, and underRemotes
select toCreate New Remote
. - Go to
Manage Schemes
and check theShared
check box. - Commit the project and select
Push
to master. - Go to the developer site and create an developer and Ad-Hoc profile.
- Go to the Xcode settings and reload the profiles for the team / developer.
- Configure this profile in the app build settings.
- Select to create a bot with CI to run on commit.
The next time you commit this should run the bot etc.