Error Correction Summary (1), error correction Summary

Source: Internet
Author: User

Error Correction Summary (1), error correction Summary
Vesions ignore & ld: library not found for-l problem summary1. recursively Delete. git and. svn files in the specified directory

Find.-name. git | xargs rm-fr
Find.-name. svn | xargs rm-rf


The first one is not commonly used, because when git is used for version management,
Only one. git directory is generated under the root directory. Just delete this one ~
Therefore, the rm-rf. git command is enough to delete the. git word.

The second is true. During version management of svn, there will be a. svn hidden directory under each managed directory.
Therefore, if you want to remove the svn file, the second command above is the best choice ~

2. Versions for Mac ignore File Settings
1. Open the configuration fileMvim ~ /. Subversion/config
2. Find a global-ignores line, remove the comment, and edit it:
Global-ignores = build *~. Nib *. so *. pbxuser *. mode(Add the file suffix to be ignored here)
3. FindEnable-auto-props = yesRemove comments
(For immediate effect? This article has not been tried. At that time, after the second article was changed, it was found that there was still no response)

3. ld: library not found for-lcurl
In XCode, the following error is reported sometimes (I encountered it today ):
Clang: warning: argument unused during compilation: '-webets ETS'
Ld: library not found for-lcurl
Clang: error: linker command failed with exit code 1 (use-v to see invocation)

Solution:
Click the XCode project file and view"Link binary With Libraries"
As expected, one or more entries are displayed in red.
What does it mean? The physical files referenced by the project are no longer recorded.
What should I do? Right-click the red entry and choose Reveal in Project Navigator ",
In this case, you can locate the path of the missing file in the left column. Next, you can find the missing file and move it back to the desired location.

4. ld: library not found for-lcurl
Symptom: during project compilation,Ld: library not found for-l....
Cause: This is usually because the project cannot find the required link library during compilation.
Solution:
Generally, you can solve this problem by selecting a Target to be compiled in the target of the project,
"Get info" to open the Build settings page.Library Search Path"To add the path of the folder where the missing link library is located.

5. After Versions for Mac is installed, the list ignored globally contains the *. a file type by default.,
This may cause some problems. Take the cocosd-x library for example,
The template project created by cocos2d-x contains three. a files:Libcurl.,Libwebp.,Libwebsockets..
If Versions is used for version management, these. a files may be skipped.
When others compile the project from the svn server checkout, the situation described above may occur.

6. Some files, such as "*. o", are ignored by default by svn. How can I cancel this default ignore so that files can be submitted normally?
Switch to the specified directory and use"Svn add * -- force -- no-ignore"Command.
Where,"-- No-ignore"Cancel ignoring,"* -- Force"Is to add all files under the current directory and all subdirectories.

7. Exercise caution when pasting directories for projects under version control!
If a directory that is pasted in contains a. svn hidden directory, the version control of the target project may fail,
Intuitively, some files exist in a directory, but cannot be seen in Versions. Daily svn operations may also be affected.

How can this problem be solved? Switch to the problematic directory in the console and use"Find.-name. svn | xargs rm-rf"Command.

Related Article

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: info-contact@alibabacloud.com 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.