error using the code from Mailcomposer from apple sample
I using the code from Apple for MailComposer but when I try to run my app i get a error message and I can't build my app.
The message error I get:
Undefined symbols for architecture i386: "_OBJC_CLASS_$_MFMailComposeViewControl开发者_C百科ler", referenced from: objc-class-ref in InfoMailComposerViewController.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status
Know anybody what this means??
thanks in advance
You have to include the MessageUI.framework
in your project.
If you are using Xcode 4:
- Select the Project then highlight your active Target.
- Select the "Build Phases" Tab
- Expand "Link Binary With Libraries"
- Hit the '+' button
- Select MessageUI.framework
The above answer by MarkPowell works like a charm.
I first tried it on the CordovaLib.xcodeproj file.
It did not work, then I tried it at Testing.xcodeproj. Then the errors disappeared and worked magically.
精彩评论