Ios 无法理解我为什么会出现错误“;PFPush没有名为sendPushInBackground的成员;
我从解析文档中复制了这一点,并且在最后一行中不断出现错误“PFPush没有名为sendPushInBackground的成员”。我不知道为什么Ios 无法理解我为什么会出现错误“;PFPush没有名为sendPushInBackground的成员;,ios,swift,parse-platform,push-notification,Ios,Swift,Parse Platform,Push Notification,我从解析文档中复制了这一点,并且在最后一行中不断出现错误“PFPush没有名为sendPushInBackground的成员”。我不知道为什么 let pushQuery = PFInstallation.query() pushQuery.whereKey("deviceType", equalTo: "ios") let push = PFPush() push.setQuery(pushQuery) // Set our I
let pushQuery = PFInstallation.query()
pushQuery.whereKey("deviceType", equalTo: "ios")
let push = PFPush()
push.setQuery(pushQuery) // Set our Installation query
push.setMessage("Willie Hayes injured by own pop fly.")
push.sendPushInBackground()
来自解析文档:v1.2.21-2014年8月22日 “开始此版本时,您需要将
bolt.framework
(如果您的应用程序与Facebook SDK交互,则需要将ParseFacebookUtils.framework)拖动到Xcode项目文件夹目标中。这两个文件夹都位于Parse SDK下载中。”
所以,如果您在Swift中使用它。。。拖动螺栓框架后,还必须添加此“#导入”
#在中导入
…-bridgeing Header.h
快乐编码 “解析SDK现在依赖于Bolts.framework”-您是否在项目中“拖动”了Bolts.framework?是的,它在我的项目中,您确定吗?请告诉我,如果你的
。-bridgeing Header.h中有这个#import
,我想你的意思是如果我的项目中有这个框架。我在桥文件中添加了导入,效果非常好!谢谢如果你把这个作为问题的答案,我可以把它标记为正确