Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 使用未声明的类型';MFMailComposeViewControllerDelegate&x27;_Swift_Xcode_Archive_Mfmailcomposeviewcontroller - Fatal编程技术网

Swift 使用未声明的类型';MFMailComposeViewControllerDelegate&x27;

Swift 使用未声明的类型';MFMailComposeViewControllerDelegate&x27;,swift,xcode,archive,mfmailcomposeviewcontroller,Swift,Xcode,Archive,Mfmailcomposeviewcontroller,我正在尝试向Xcode 7中内置的应用程序Swift 2.3发送更新。应用程序构建和运行良好,没有任何问题,但是,当我尝试存档时,收到“使用未声明的类型‘MFMailComposeViewController delegate’” 我想这只是我的旧项目让我感到悲伤,所以我创建了一个新项目,它有一个类: import UIKit import MessageUI class ViewController: UIViewController, MFMailComposeViewController

我正在尝试向Xcode 7中内置的应用程序Swift 2.3发送更新。应用程序构建和运行良好,没有任何问题,但是,当我尝试存档时,收到“使用未声明的类型‘MFMailComposeViewController delegate’”

我想这只是我的旧项目让我感到悲伤,所以我创建了一个新项目,它有一个类:

import UIKit
import MessageUI

class ViewController: UIViewController, MFMailComposeViewControllerDelegate {}

同样,它在构建时有效,并在存档时给我同样的错误。我目前使用的是Xcode 8.0,有什么想法吗?

请检查在链接二进制代码库中添加了
MessageUI.framework