I was getting this error, and it was due to including a third party .dylib file in my app. I converted the library to a framework and that fixed it. This other post covers how to do that: Embedding a .dylib inside a framework for iOS