Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can't build macOS Xcode project using xcodebuild (Unity 2020.3.11f1)

Discussion in 'macOS' started by lasersinc, Jun 11, 2021.

  1. lasersinc

    lasersinc

    Joined:
    Apr 21, 2013
    Posts:
    12
    Hi,

    Building through the Xcode GUI works fine, but I can't get xcodebuild to work for my automated builds.

    I'm calling using:

    xcodebuild -target "Super Impossible Road"


    and xcodebuild stalls indefinitely with this as the last line out output:

    /bin/sh -c /Users/kevinng/.jenkins/jobs/super-impossible-road/Jenkins/builds/115/output/MacOS_Dev/build/MacOS_Dev.build/Release/GameAssembly.build/Script-84AC4CF6B94A5836164D3169.sh


    Unity 2020.3.11f1
    Xcode 12.5
    macOS Big Sur 11.4
    MacBook Pro (M1)

    I tried making a small Xcode project using the Xcode game template and it builds fine using xcodebuild.

    Am I doing something wrong? Is xcodebuild expected to work with generated macOS Xcode projects?

    Kind Regards,

    Kevin
     
  2. lasersinc

    lasersinc

    Joined:
    Apr 21, 2013
    Posts:
    12
    This is still an issue, very odd since building through Xcode works fine. Any ideas, Unity?