iOS Question Mac Builder error

Discussion in 'iOS Questions' started by ajk, Aug 28, 2017.

  1. ajk

    ajk Active Member Licensed User

    I got this error message during compilation: Error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    I can compile project in Unity, but not in B4I - how to fix this error and not break good Unity-Xcode cooperation?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Which version of B4i and Xcode are you using?
     
  3. ajk

    ajk Active Member Licensed User

    B4i 4.01
    Xcode 8.3.3 (8E3004b)
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Do you have access to B4i v4.30? If so then install it.

    What is the output of:
    xcode-select -p

    ?
     
  5. ajk

    ajk Active Member Licensed User

    /Library/Developer/CommandLineTools

    I have installed ver. B4a 4.3 beta
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    xcode-select should point to a path such as: /Applications/Xcode.app/Contents/Developer

    In your case it points to the command line tools.

    You can configure it with:
    sudo xcode-select -switch <path here>
     
  7. ajk

    ajk Active Member Licensed User

    Ok I have found solution:
    Reason: Xcode installed "by hand" not from store > results in xcode.appdownload in Applications directory
    Solution:
    1) download from Store
    or
    2) copy xcode.app to Applications manually (in my case xcode.app was installed in other than Applications directory
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice