Error -> Build failed -> Please upgrade your Subversion client to use this working copy

前端 未结 3 1835
长发绾君心
长发绾君心 2021-02-06 07:35

I am using Xcode 4.2.1 and I have this problem running an existing application on the iOS simulator:

svn: The path \'.\' appears to be part of a Subversion 1.7 or         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 08:17

    There is a post that appears to imply that you can fool XCode into using svn 1.7 client by changing your PATH and setting up a couple of soft links in strategic places. Unfortunately, the post is in Chinese. Fortunately, Google translate and the presence of UNIX commands make it possible to decrypt what the post is saying. I will try it in the next few days, and update the answer if anything useful comes out of this exercise.

    EDIT: I tried the steps from the post, and it worked. Here is what I did:

    • Downloaded and installed svn client 1.7.2 into /opt/subversion
    • Added /opt/subversion/bin to my PATH in .bash_profile
    • Created a backup directory /Developer/usr/bin/orig.svn
    • Moved /Developer/usr/bin/svn* to /Developer/usr/bin/orig.svn
    • Ran ln -s /opt/subversion/bin/svn* /Developer/usr/bin/

    After that I re-started XCode, went to Organizer, and was able to attach a working copy of a checkout created with svn 1.7.2 client. Organizer showed a green dot next to the repository, displayed a list of revisions, etc., so at this point I believe that the trick has worked.

提交回复
热议问题