我已经和这个框架错误斗争了好几天了。我已经包含了iphone3.0sdk中的MessageUI框架,并导入了头文件(MessageUI/MessageUI.h)
有人知道这个错误是什么意思吗?
collect2: ld returned 1 exit status
symbol(s) not found
literal-pointer@_OBJC@__cls_refs@MFMailComposeViewController
".objc_class_name_MFMailComposeViewController", referenced from:
以下是构建日志的一些输出
目前,我的项目在IOS开发目标3.2上工作得很好,但只要我完成开发目标4.0或更高版本。这给我带来了错误。以下是错误:
Ld /Users/taxsmart2/Library/Developer/Xcode/DerivedData/MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj/Build/Products/Debug-iphonesimulator/MessageUI.app/MessageUI normal i386
cd /Users/taxsmart2/Desktop/ipad
setenv MACOSX_DEPLOYMENT_TARGET
asp.net mvc 2
我在Identity controller中有此操作
public ActionResult Details(string id, MessageUi message)
{
我试图从另一个控制器重定向到此操作,但我不知道应该如何传递message参数
我试着用
var id = "someidvalue"
var message = new MessageUi("somevalue");
return RedirectToAction("Details", "Identity",
我收到了这个警告
MessageUI.framework/MessageUI, file was built for unsupported file format which is not the architecture being linked (i386)
上面写的是什么?
我已经通过拖放到我的资源文件夹中添加了消息框架(我还选中了上面写着“复制文件或其他内容”的标记)。这是添加框架的正确方式吗?我试着用鼠标右键点击资源文件夹,但我找不到任何菜单选项,上面写着“添加框架”或类似的东西。(我使用的是xcode 4.2)