开发者

error using the code from Mailcomposer from apple sample

开发者 https://www.devze.com 2023-03-16 02:17 出处:网络
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.

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:

  1. Select the Project then highlight your active Target.
  2. Select the "Build Phases" Tab
  3. Expand "Link Binary With Libraries"
  4. Hit the '+' button
  5. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消