In Xcode, SVN cannot submit a. A file solution

Source: Internet
Author: User

Xcode ignores. A files by default. So it cannot be submitted to the SVN server, but many third-party libraries have. a files. Therefore, it must be submitted to the server.

Search the solution:

1. Open the terminal and Enter: VI ~/.subversion/config on the command line to open the configuration file.
2. Then, Find this string in [Miscellany]:
# global-ignores = *.o *.lo *.la *.al. Libs *.so *.so. [0-9]* *.a *.pyc *.pyo
# *.rej *~ #*#. #*. *.swp. Ds_store

This means that SVN automatically ignores files with these suffixes on commit, then we want to remove the *.A, then change the config file to
global-ignores = *.o *.lo *.la *.al. Libs *.so *.so. [0-9]* *.pyc *.pyo *.rej *~ #*#. #*. *.swp. Ds_store
Save exit. You can do it.You can modify other suffix names according to your needs.

Such treatment should be the best, to play the role once and for all, after. A file will not be ignored, but after such processing, found in the versions is still ignored, not the effect.

So finally, we can only use the original method to solve the problem:

method One: Add a file using the command line ("Go" in the original)

1. Open terminal, enter CD, space, and then drag and drop the folder (not. A file) of the. A file that you want to upload to the terminal (this method does not need to input cumbersome path, fast and convenient), enter;
2. Then enter the following command: SVN add libocmock.a, enter;
3. The following will appear: A (Bin ) libocmock.a
Add success, open versions can see, just added the. A file, at this point can be manually uploaded.

Also, enter the command line in Mac 10.8 and you may be prompted to command not found because 10.8 does not have command lines tools installed by default, workaround: Command not Found workaround.

method Two: Manually add files in versions

Select the Versions menu View-->show ignored Items so that the ignored file will be displayed and the. A file you want to upload, right-click on "Add".

Do not know is not versions problem, later try cons see if there will be this problem.

In Xcode, SVN cannot submit a. A file solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.