First, add the database question:
Select Build Phases-> Link Binary With Libraries point + Add Library
Then command + shift + k to clear the garbage from the history debug
Copying other project files compilation errors:
[Cpp]
When copying a file to a project, if you do not check "Add to Target", the following error will be reported during running:
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
Solution:
Click solution first (on the left side of the list, click the solution icon)
Select target
Select the tab to Build Phases
Compile Source
If not, expand
Find the plus sign and click the plus sign to add the header file of the. m file required by the target.
(If there is only one file, add both the. h files)
This should be done.
When copying a file to a project, if you do not check "Add to Target", the following error will be reported during running:
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
Solution:
Click solution first (on the left side of the list, click the solution icon)
Select target
Select the tab to Build Phases
Compile Source
If not, expand
Find the plus sign and click the plus sign to add the header file of the. m file required by the target.
(If there is only one file, add both the. h files)
This should be done.