使用cocoapods安装SDK后没有这样的模块"BMSPush" [英] No such module 'BMSPush' after SDK installation with cocoapods

查看:94
本文介绍了使用cocoapods安装SDK后没有这样的模块"BMSPush"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经根据在线文档初始化了iOS的Bluemix Push SDK:

I've initialized the Bluemix Push SDK for iOS following the online documentation: https://console.ng.bluemix.net/docs/services/mobilepush/t_enable_ios_notifications_install.html

不幸的是,我的AppDelegate.swift中的"import BMSPush"语句引发错误(没有这样的模块"BMSPush").

Unfortunately, the "import BMSPush" statement in my AppDelegate.swift raises an error (No such module 'BMSPush').

在构建我的应用程序(目标:iOS 8.0)时,BMSPushClient.swift引发了13个问题,如以下屏幕截图所示:

When building my application (target: iOS 8.0), there are 13 issues raised on BMSPushClient.swift, as detailed in the following screenshot:

我的配置如下:

XCode 7.0.1
Mac OS X 10.10.5
Cocoapods 0.39.0

Cocoapods报告了以下版本的已安装依赖项:

Cocoapods reported the following versions of the installed dependencies:

Using BMSAnalyticsAPI (0.0.20)
Using BMSAnalyticsSpec (0.0.16)
Using BMSCore (0.0.44)
Using BMSPush (0.1.06)

有人知道如何解决这个问题吗?

Does anybody knows how to solve this issue ?

推荐答案

此问题的真正原因是由于BMS Swift SDK中的名称更改.您可能知道,用于Bluemix Mobile Services的Swift SDK仍处于预发行阶段.为了在正式发布之前改进SDK,不断进行更改.

The real cause of this issue is due to a name change in the BMS Swift SDK. As you may know, the Swift SDK for Bluemix Mobile Services is still in the pre-release stage. Changes are constantly happening to improve the SDK before the official release.

在这种情况下,项目BMSAnalyticsSpec已更改为BMSAnalyticsAPI,这导致BMSPushUtils和BMSPushCore文件中的导入语句出现问题.开发团队已更新SDK,使其包含新的BMSAnalyticsAPI导入语句.可以通知您.

In this case the project BMSAnalyticsSpec has been changed to BMSAnalyticsAPI which caused issues with the import statements in the BMSPushUtils and BMSPushCore files. The development team has updated the SDK to include the new BMSAnalyticsAPI import statements. I can let you know when it is available.

要在本地环境中解决此问题,可以使用新的BMSAnalyticsAPI导入语句更新这两个文件中的导入语句.同样,在正式发布该SDK之前,它仍应用作实验性SDK.

To fix this problem in your local environment, you could update the import statements in those two files with the new BMSAnalyticsAPI import statement. Again, the SDK should still be used as an experimental SDK until it is officially released.

更新:BMSPush SDK已更新,其中包括上述名称更改.请完成pod更新,以获取最新版本(0.1.07).这应该可以解决您上面描述的问题.

UPDATE: The BMSPush SDK has been updated to include the name changes described above. Please complete a pod update in order to grab the latest version (0.1.07). This should solve the problem you described above.

这篇关于使用cocoapods安装SDK后没有这样的模块"BMSPush"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆