Search code examples
swiftibm-cloudibm-mobile-services

Bluemix Swift Mobile Client Access SDK when imported says no such module BMS Core and BMS Analytics show 35 errors due to which my build fails


As per the instructions given on Bluemix site; I installed the Swift SDK

 pod use_frameworks!
 pod 'BMSSecurity'

and it shows this on my terminal:

terminal

Then, when I built the project, I got 36 build errors.

First of which is "no such module as BMSCore" when I can see that framework imported in the pod and 35 errors related to BMSAnalytics, which is again framework imported.

error


Solution

  • These build errors are due to the incompatibility between two of the BMSSecurity dependencies (BMSCore and BMSAnalyticsAPI) and the version of Xcode you are using (7.2.1). The latest versions of these 2 frameworks only support Xcode 7.3 and higher, as explained in the BMSCore Github README. If you want to continue using Xcode 7.2, you can use BMSCore 1.0.3 instead.

    So, there are 2 possible solutions here:

    1. Upgrade Xcode to version 7.3
    2. Add the following line to your Podfile: pod 'BMSCore', '~> 1.0.3'

    Option 1 is recommended since only Xcode 7.3+ will be supported in future releases of BMSSecurity.