How to install Xcode from xip file

前端 未结 3 1538
灰色年华
灰色年华 2021-02-06 19:59

I am very new to macOS, I just need a mac with Xcode to compile my app. However, with macOS Sierra, I have a problem with my USB that is not working anymore (i can\'t plug my ip

3条回答
  •  花落未央
    2021-02-06 20:58

    Update: 08 Oct, 2020: Easy way

    • https://ladydebug.com/blog/2019/08/20/xcode-installation-from-xip-file/
    • https://www.freecodecamp.org/news/how-to-download-and-install-xcode/

    Old Ans

    Convert the xip to a dmg by opening a terminal to the folder where the xip is placed and run the following commands:

    $ open Xcode_X_Y_Z.xip
      $ mkdir Xcode-tmp
      $ mv Xcode.app Xcode-tmp/Xcode.app
      $ hdiutil create -volname "Xcode" \
                -srcfolder Xcode-tmp \
                -ov -format UDZO \
                Xcode_X.Y.Z.dmg
      $ rm -rf Xcode-tmp
    

提交回复
热议问题