Search code examples
iosxcodeappiumcommand-line-tool

Xcode command line tools (two versions side by side)


Recently we've moved to Xcode 8 in order to compile the app with new Xcode version, but I still need to use Old Xcode (7.3.1) in order to use it's instruments with older ver of appium ...

I was wondering if there is a way to open each Xcode ver and to use it's relevant command line tools?
currently , the command line tools I set in specific version is being used among two Xcode versions ...

Thanks!


Solution

  • I am using X-code 7.3.3. to run appium test and Xcode-8 to build app under test. I have moved xocde8 into folder name "xcode8". And to switch between different Xcode version you can use -

    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/
    
    sudo xcode-select -s /Applications/xcode8/Xcode-8.app/Contents/Developer/