For anyone still looking to a solution to this, at least for my situation, this happened because my product name was not exactly the same as my project name. Once I changed the Product Name field under Build Settings to perfectly match my project name (or target name, scheme name, not sure what it actually cares about) this error went away.