After a lot of looking around this worked for me, I had to change this setting.
Goto Project Target > Build Phases > Embed Pods Framework > check the option "for install builds only" under Run script:
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: