IOS xcode:linker command failed with exit code 1 (use-v to see invocation) processing method

Source: Internet
Author: User

Just into the development of iOS, the feeling is quite laborious, for the complex interface of the drawing is more difficult. Talk not much, turn to the point ...

Today, I encountered the "linker command failed with exit code 1 (use-v to see invocation)" Question,

What makes me depressed is that Xcode doesn't point out the code for a specific error, which makes it more difficult for a novice to find a problem,

Here's a summary of the mistakes I've encountered:

1. Images that are linked or used in Storyboard do not exist.

Solution: Remove the images used in the storyboard.

2. The defined class name coincides with the name of the picture (this also makes me not realize that the picture name and the class name are not the same).

FIX: Modify two names to a different name, or temporarily comment out the class name to compile successfully.

I'm probably used to the simple and beautiful syntax in. NET, to objetive-c this way, how to look at the code is not beautiful, no beauty, no longer like in. NET write code A word value of the feeling of the daughter.

3. The third-party library that is used. A file does not exist locally.

WORKAROUND: I: Locate the Library and re-add the reference.

II: Temporarily comment out the code for the library call, you can compile the pass.

IOS xcode:linker command failed with exit code 1 (use-v to see invocation) processing method

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.