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

Cordova Push notifications Plugin for IBM Cloud Mobile Services
Apache License 2.0
9 stars 9 forks source link

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

Closed andaqui closed 6 years ago

andaqui commented 6 years ago

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

AnanthaKrish commented 6 years ago

@kumpanen Please use XCode 9.2 and try

andaqui commented 6 years ago

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

AnanthaKrish commented 6 years ago

@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 ...

andaqui commented 6 years ago

okay, thanks for the feedback.

AnanthaKrish commented 6 years ago

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

andaqui commented 6 years ago

Swift version to 4.1 solves the issue. Thanks.