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

Source: Internet
Author: User

When you operate CoreData today, create Nsmanagedobject subclass ... , four files are automatically generated in the project, as shown in:

This is the moment of engineering, the exciting moment is coming! Inexplicably throws an exception (linker command failed with exit code 1 (use-v to see invocation), as shown in:

Workaround:

Originally thought is the file duplication caused, but before this throw exception operation, only for coredata after careful troubleshooting, so still decisive to the problem directed to the CoreData, and very positive and confirmation is coredata cause, because Xcode 8 will be generated by default Subclass, by manually creating the subclass will cause the file duplication resulting in compilation error, so after a few troubleshooting found that there are two needs in the initial use of CoreData configuration adjustment can be;

Step One:

Change the default parameter in Tools Version = Minimum to 7.3, as shown in:

Step Two:

Change the default option in Class = = Codegen to Manual/none, as shown in:

After a two-step operation, re-Create Nsmanagedobject subclass ... Again, you can compile the project again.

This is the end of this share, hope that the content can be helpful to everyone, there is any shortcomings welcome guidance and common progress!

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

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.