If you are using CocoaPods this can be easily done for IOS as below.
You will need to install the Cocoapod first
brew install cocoapods
Create a default pod file if you do not have one
Make sure you have pod file as here
Now run the below command to get all dependencies
If this fails with errors mentioning xcrun, make sure that in ...
Are you setting the button type to "app URL" (or similar) when you're creating the message? If so, try using "web URL". There was a recently discovered server-side issue where the type was being incorrectly converted to close when the payload was generated and delivered to the SDK.