How do I create a bot in Xcode? Getting “Creating a bot requires a project that is under source control.”

你。 提交于 2019-12-05 07:55:54

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.

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.

Ronan

After numerous trials I did the following steps to get the whole process to work:

  1. Connect a device to the server. Make sure it is active.
  2. Set up the server and ensure that the XCode service is active.
  3. Create a new project with a local GIT.
  4. In the Source Control menu, select Configure, and under Remotes select to Create New Remote.
  5. Go to Manage Schemes and check the Shared check box.
  6. Commit the project and select Push to master.
  7. Go to the developer site and create an developer and Ad-Hoc profile.
  8. Go to the Xcode settings and reload the profiles for the team / developer.
  9. Configure this profile in the app build settings.
  10. Select to create a bot with CI to run on commit.

The next time you commit this should run the bot etc.

I had the same issue when I tried to edit a bot that I created before. In my case the problem was that I created the bot for the master branch, but when I tried to edit it, I had checked out a different branch. After switching back to master I was able to successfully edit my bots.

I think I had the easiest time of all. I simply did an Xcode-based commit and push, then tried the bot again, and the nasty error was gone.

[In Xcode 6.4, this would crash the Xcode].

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!