iOS development issues: adding libraries and copying other engineering files compile error issues

Source: Internet
Author: User

Add Library issues First:

Select page Check build Phases->link Binary with libraries + Add library


Then command+shift+k erase history's debug garbage.

Copying other project file compilation error issues:

When copying files into the project, if you do not pay attention to check "Add to Target", the runtime will be reported as follows similar error:
Undefined symbols for architecture i386:
 
"_objc_class_$_ Skpsmtpmessage ", referenced from:
  objc-class-ref in CONFIRMCONTROLLER.O
 
" _ Kskpsmtppartcontenttransferencodingkey ", referenced from:
  -[confirmcontroller SendEmail] in CONFIRMCONTROLLER.O
 
"_kskpsmtppartmessagekey", referenced from:
  -[confirmcontroller SendEmail] in confirmcontroller.o
 
"_ Kskpsmtppartcontenttypekey ", referenced from:
  -[confirmcontroller SendEmail] in CONFIRMCONTROLLER.O
 
LD: Symbol (s) not found for architecture i386
 
 
Workaround:
First click on the scheme (list on the left, click on the Schema)
Select target
Select page Sign build phases
Compile Source
If it's not expanded
, start looking for the plus sign, click the plus sign, and add the header file of the. m file that the target requires.
(if only one of the. h files are added)
That would be okay.


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.