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