ThisCorrosion

Q: "This version of Xcode cannot be used with OS X Server"

Ran all the updates on the Mac mini for 10.10.3 and associated items.  That included Xcode 6.3 (from the App Store).  Started Server.app and it asked to choose a new version of Xcode.  Did so and it gives the error in the heading.

 

Never seen this happen before.  Stuffs up any chance of using testing bots.  Any ideas on how to fix it?

Mac mini, OS X Yosemite (10.10.3)

Posted on Apr 15, 2015 5:52 PM

Close

Q: "This version of Xcode cannot be used with OS X Server"

  • All replies
  • Helpful answers

  • by Mark Szymczyk,

    Mark Szymczyk Mark Szymczyk Apr 16, 2015 11:28 AM in response to ThisCorrosion
    Level 4 (2,009 points)
    Apr 16, 2015 11:28 AM in response to ThisCorrosion

    Did you update OS X Server and Xcode Server? An updated version of Xcode may require updated versions of the Server apps to use bots.

  • by jimmyjudas,

    jimmyjudas jimmyjudas Apr 20, 2015 3:47 AM in response to Mark Szymczyk
    Level 1 (0 points)
    Apr 20, 2015 3:47 AM in response to Mark Szymczyk

    I'm having the problem with Server 4.1 and Xcode 6.3.

  • by ThisCorrosion,

    ThisCorrosion ThisCorrosion Apr 20, 2015 3:59 AM in response to ThisCorrosion
    Level 1 (1 points)
    Apr 20, 2015 3:59 AM in response to ThisCorrosion

    I found it started working if I left it alone for a while.  After being contacted by an Apple engineer on Twitter it seems that after everything is updated it takes a while for it to run all of the initialisations.  So the approach seems to be:

     

    1) Update OS X, Server.app and Xcode

    2) Reboot, start up Server.app and leave it alone until Spotlight has stopped grinding away

    3) Start up Xcode and give it a few minutes while it runs all the new initialisation processing

    4) Select the Xcode item in Server.app and attach the new version of Xcode

     

    It does seem to get there eventually but isn't helped by the worryingly incorrect error message.

  • by Mark Szymczyk,

    Mark Szymczyk Mark Szymczyk Apr 20, 2015 10:21 AM in response to jimmyjudas
    Level 4 (2,009 points)
    Apr 20, 2015 10:21 AM in response to jimmyjudas

    I don't use Xcode bots so I can't provide you a solution.

  • by FixMaestro,

    FixMaestro FixMaestro May 18, 2015 2:04 PM in response to ThisCorrosion
    Level 1 (5 points)
    May 18, 2015 2:04 PM in response to ThisCorrosion

    I have the same versions that you have and noticed this happened to me as well. The issue I experienced is that while configuring Xcode on the OS X Server, the software requires specific permissions to exists in many various directories. I think it may be that the install of the latest Xcode (not sure) may have hosed the permissions.

     

    The way to fix this is to open the Disk Manager from utilities and then select the volume that you run this on. On the First Aid tab, choose either Verify Permissions (on the lower left) or Repair Permissions and let it run. After it completes, restart the machine and try again to choose the latest version of Xcode. With luck, you'll find it works fine now.

     

    Hope this helps.

  • by iuser797,

    iuser797 iuser797 Jun 29, 2015 9:15 AM in response to FixMaestro
    Level 1 (0 points)
    Jun 29, 2015 9:15 AM in response to FixMaestro

    Thanks FixMaestro, this works for me.

  • by JeffAtWork,

    JeffAtWork JeffAtWork Jul 16, 2015 10:46 AM in response to FixMaestro
    Level 1 (10 points)
    Jul 16, 2015 10:46 AM in response to FixMaestro

    FixMaestro, this worked for me too.  The operative part was "reboot!" 

     

    My experience was with:

     

    OS X 10.10.4

    Xcode 6.4

    OS X Server 4.1.3

  • by BobbyDubWork,

    BobbyDubWork BobbyDubWork Aug 4, 2015 11:35 AM in response to FixMaestro
    Level 1 (0 points)
    Aug 4, 2015 11:35 AM in response to FixMaestro

    I have tried doing the fix permissions. My OS X server works with Xcode when I reboot the machine an start it up fresh.

    After it sitting for a day or two it manages to lose the Xcode connection and tells me I need to Select the version of Xcode again even though I have already set it. Bots will stop doing their On Commit runs as it can no longer attach to xcode.

    No updates have been done during this time, the server has not changed IP and I have no server alerts pending it just loses its connection.

    Rebooting OS X Server does not fix it. Occasionally if I turn of Server for a bit and wait an hour it will then find the connection again on starting the app but restarting the machine and launching Server will fix the issue. For a CI environment I cannot keep restarting the machine for it to work it should just work as long as the machine is on and server app is running.

    Is there a way to fix this or will I have to wait for the next version of OS X Server and Xcode for things to work better?

  • by JeffAtWork,

    JeffAtWork JeffAtWork Aug 4, 2015 11:55 AM in response to BobbyDubWork
    Level 1 (10 points)
    Aug 4, 2015 11:55 AM in response to BobbyDubWork

    I am having the same issue, where Xcode Server seems to forget the Xcode.app that I had selected. 

     

    If you can't find an answer in the forums, I would suggest filing an actual bug so that Apple is aware of the issue.  I don't think it's easy for their development teams to track bugs that appear as posts in their user communities.

     

    https://developer.apple.com/bug-reporting/

     

    I am a little nervous that Xcode Server isn't ready for prime time yet, based on the number of severe bugs I've run into trying to accomplish even the simplest tasks (like selecting a version of Xcode to use).  Filing a bug is my best option for improving the product.

  • by BobbyDubWork,

    BobbyDubWork BobbyDubWork Aug 4, 2015 12:35 PM in response to JeffAtWork
    Level 1 (0 points)
    Aug 4, 2015 12:35 PM in response to JeffAtWork

    I logged a ticket as suggested. Thanks for the info. If I hear anything back I will let you know.

    Otherwise I guess we wait for next version to see what happens then.

  • by iuser797,

    iuser797 iuser797 Sep 11, 2015 7:35 AM in response to BobbyDubWork
    Level 1 (0 points)
    Sep 11, 2015 7:35 AM in response to BobbyDubWork

    Hey BobbyDubWork, the same issue is bothering me too. Is it working for you now or any solution?