设置 iOS 推送通知时出现问题,因为 AppDelegate.h 没有找到需要的 header

Issue with setting up iOS push notifications because AppDelegate.h isn't finding a needed header

我正在按照 iOS 的推送通知设置说明进行操作。说明可在此处找到:

https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-ios-get-started/

我到了我必须做的一步:

Open your AppDelegate.h file add the following import directives:

     #import <WindowsAzureMessaging/WindowsAzureMessaging.h> 
     #import "HubInfo.h"

但是,我收到以下错误: http://imgur.com/xk2Rngh

这是我的文件大纲: http://imgur.com/PStisNu

知道我做错了什么吗?这个错误可能很简单。显然 Azure header 文件存在于 header 文件夹中,但可能我的语法以某种方式关闭

下载框架后,应将其放入项目文件夹中。

之后你应该去 Build Settings -> Runpath Search Paths 并添加 $(PROJECT_DIR)

显示Xcode,在哪里搜索这些框架

完成所有这些之后,您只需将它们添加到 Xcode 项目本身

顺便说一句,您可以将这些框架放在任何您想要的地方,但您应该为 Xcode 提供有效的搜索路径以找到它们。