CodeSign Error after changing Product Name

2019-03-01 13:10发布

问题:

I recently come across a hectic problem when App Store rejected my application saying that the App Name and the Product Name are not same. I followed the steps told by them to change the product name. But when I rebuilt the app, it gives me a codesigning error:

Error : codesign failed with exit code 1

Any idea what the problem is here?

回答1:

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"

  • info.plist (or *.plist) the field "executable file"

So make sure that these fields contain the same value.

The root of the problem that I renamed the executable file in the .plist file cause the initial name of the xcode project was not the name of the final product.