我有一个应用程序,在iPhone应用程序中,我们使用MessageUI框架,但当我尝试将其添加到我的Apple Watch Extension InterfaceController.h文件中时,如下所示:
#import <MessageUI/MessageUI.h> 我得到了这个错误:
'MessageUI/MessageUI.h' file not foundwatchOS不支持MessageUI吗?我需要再读一遍这个框架吗?
发布于 2015-12-31 05:55:02
WatchOS 2不支持iOS上的许多标准框架(包括MessageUI)。如果您希望做一些需要仅在iOS上可用的框架的密集工作,那么您可以使用watch connectivity。
我之前问过这个问题,关于一个不同的框架,但同样的想法也适用:How to reference non-supported frameworks in Watch OS 2
https://stackoverflow.com/questions/34537802
复制相似问题