How to create a bot in Xcode? Getting "Creating a bot requires a project that is under source control."

I am trying to configure Continuous Integration in Mavericks using OS X Server for Mavericks.

I have Server installed, and the source code is in a local directory using Git from the collector. I follow the Apple Xcode Continuous Integration Guide, and I'm in the part where I add the bot to the product in Xcode.

I get an error message:

To create a bot, you need a project that is controlled by the source. This project is located in the local Git repository. To be able to create a bot, the project must be in the repository, access to which can be obtained by the server so that it can clone it. [cancel] [Configure Remotes ...]

Clicking on undo or configure remotes leads to a setting for my folder, and I see that my remote added is just fine. I also tried adding a remote repository with a different name.

How do I move forward?

+6
source share
5 answers

It seems that this problem occurs when there is no remote name "origin", like what Xcode is looking for. When I renamed my remote to the beginning (in <ProjectRoot>/.git/config ), Xcode stopped complaining and allowed me to add a bot through the Xcode interface.

+4
source

It is hacked, but it works.

In Xcode, I clicked on the Source Control menu, then checked. I checked my repository for a new folder and I was able to create my bot.

It seems that adding a repository from the command line made things not look right for Xcode.

+3
source

After numerous tests, I took the following steps to make the whole process work:

  • Connect the device to the server. Make sure it is active.
  • Configure the server and verify that the Xcode service is active.
  • Create a new project with local GIT.
  • In Source Control select Configure , and under Remotes select Create New Remote .
  • Go to Manage Schemes and check the Shared checkbox.
  • Lock the project and select Push to manage.
  • Go to the developer's site and create a developer and ad-hoc profile.
  • Go to Xcode settings and reload profiles for team / developer.
  • Configure this profile in the application build settings.
  • Select to create a bot with CI to run on commit.

The next time you fix this, you should start the bot, etc.

+2
source

I had the same problem when I tried to edit the bot that I created earlier. In my case, the problem was that I created a bot for the main branch, but when I tried to edit it, I checked another branch. After switching to the master, I was able to successfully edit my bots.

+1
source

I think I had the easiest time. I just committed and clicked on Xcode, then tried the bot again, and the nasty bug disappeared.

[In Xcode 6.4 this will cause Xcode to crash].

0
source

Source: https://habr.com/ru/post/956845/


All Articles