The problem was that there where different names entered in the following configuration fields:
- Project -> Edit Active Target -> Properties Tab -> Field "Executable"
- Project -> Edit Active Target -> Build Tab -> Field "Product Name"
- in info.plist (or *.plist) the field "executable file"
So make sure that these fields contain the same value.