How to install Xcode from xip file

前端 未结 3 1506
灰色年华
灰色年华 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:56

    Double-click the xip file and it will extract the Xcode application. Move Xcode to the Applications folder and you are good to go.

    The App Store should present the Xcode update once you update to Sierra (macOS 10.12). If it doesn't you can download Xcode directly from the App Store. The preferences are stored in /Users/<username>/Library/Preferences and are not impacted by updating the version of Xcode or OS.

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2021-02-06 21:02

    For example, if a XIP file is located on your desktop: open the “Terminal” application found in /Applications/Utilities/ and run the following command:

     xip -x ~/Desktop/Xcode_8.2.1.xip
    
    0 讨论(0)
提交回复
热议问题