ibm-bluemix-mobile-services/bms-clientsdk-cordova-plugin-push

Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'?

Closed this issue · 6 comments

With the latest update of xcode we get a new issue when trying to build.

Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'?

in BMSPushUtils.swift file, line 117, 118, 119 and 121. See printscreen.

error

@kumpanen Please use XCode 9.2 and try

@AnanthaKrish Well yea, it worked last week with 9.2, but thats not a good solution in the long term imho. :)

@kumpanen Yeah , I agree.. With latest Xcode we have to start testing, that will take couple of days. As a solution for now , please use Xcode 9.2 ...

okay, thanks for the feedback.

@kumpanen change the swift version to 4.1. In pods (All frameworks) and your project

Swift version to 4.1 solves the issue. Thanks.