pusher / push-notifications-swift

Swift SDK for the Pusher Beams product:
https://www.pusher.com/beams
MIT License
34 stars 24 forks source link

Array+CalculateMD5 - Optional string not unwrapped #91

Closed BenitoP closed 6 years ago

BenitoP commented 6 years ago

Good day,

Just installed the Pusher Beams pod via the Pusher website as per the instructions. I am still receiving the Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'? error in the file Array+CalculateMD5.swft. I see there was a fixed pushed for this 2 months ago though although the problem still persist. I have reinstalled a couple of times, cleaned the project but still no luck.

screen shot 2018-09-11 at 14 27 05

lukabratos commented 6 years ago

Hey @BenitoP

Our SDK supports Swift 4. I believe that you're getting this error because you're using Swift 3 in your project. If you can I would advise you to update to Swift 4. Here are the detailed instructions on how you can do that.

BenitoP commented 6 years ago

@lukabratos Thanks! Fixed the issue by just setting the project to Swift 4 and updating the pods!