Can git be integrated with Xcode?

后端 未结 14 1397
星月不相逢
星月不相逢 2020-11-28 17:54

Is there any way to use a git repository with the built in SCM functions of Xcode?

相关标签:
14条回答
  • 2020-11-28 18:18

    I use external editors anyway. Many of them support git commands. In this way, git is "integrated" into Xcode

    0 讨论(0)
  • 2020-11-28 18:20

    Xcode 4 supports git natively (Developer Tools State of the Union Address at WWDC 2010)

    Learn more here: What's new in Xcode 4
    The documentation from Apple is lengthy, but a good read.

    0 讨论(0)
  • 2020-11-28 18:20

    The latest Xcode 4 beta has git integration, however, it does not install it by default, neither does it use your currently installed git.

    What I had to do was install the "System Tools" option in the Xcode installer. (Which is skipped by default) after that, the organizer recognized that my project was already under git control, and integrated smoothly.

    0 讨论(0)
  • 2020-11-28 18:20

    You can use Xcode with Git repos. Visual Studio Team Services offers free, private, and unlimited Git repos in the cloud. Not only can you use Xcode, but also Eclipse, Visual Studio, Team Services' own web browser interface, or any other editor/IDE you like. Share code with the first 5 users for free too.

    YouTube video: https://youtu.be/S83kn0i4WYs

    0 讨论(0)
  • 2020-11-28 18:21

    No, there's not, and to be honest I'm rather grateful, as the SVN support in Xcode seemed really flaky to me. After I moved to Git for my personal projects, I just have a Terminal window open that I can fire off git add and git commit as needed.

    0 讨论(0)
  • 2020-11-28 18:22

    In addition to the .gitignore settings referenced from the post above I have added the generated files to my config file.

    build/
    *.pyc
    *~.nib/
    *.pbxuser
    *.perspective
    *.perspectivev3
    *.xcworkspace/
    xcuserdata/

    This helps to keep the noise out of my depot.

    If I need to add generated files I add a Release folder and keep the *.framework and *.app folders to my project directory. I add anything I release to the testing group to the Release folder and tag it.

    0 讨论(0)
提交回复
热议问题