My application was working perfectly fine, then I started integrating SDK for push notification and stop the integration in between. I even deleted the SDK from my project a
For me, this occurred because my main executable and a library I was statically linking with had different settings in Build Settings > Architectures. The library was set to only "Standard architectures" but the main exe was set to "Standard architectures (including 64-bit)."
I think what was happening was that when the build process went to link everything, it found it was missing the 64-bit versions of the libraries, causing this error.
Setting them all to the same value (either with or without 64-bit) resolved the issue for me.