Apps containing ? in PRODUCT_NAME fail with "Invalid Signature"
| Originator: | futuretap | ||
| Number: | rdar://20903393 | Date Originated: | 11-May-2015 10:06 PM |
| Status: | Closed/Known Issue | Resolved: | |
| Product: | Developer Tools | Product Version: | 6.3 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When PRODUCT_NAME of the app target contains a question mark, the app builds fine and (after the usual hassle with bad provisioning profiles) can be successfully submitted to the App Store from Xcode. However, after 15 minutes iTunes Connect sends an error message: Invalid Signature - A sealed resource is missing or invalid. The binary at path [Where To?.app/Where To?] contains an invalid signature. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html Steps to Reproduce: Add a question mark to PRODUCT_NAME of an app project (possibly including a framework and a WK app). Expected Results: It should either be accepted or fail with an **informative** error message. Actual Results: At the very last step (>15 minutes after hitting submit in Xcode), iTunes connect sends the above error message. Regression: unknown Notes: We chose to put a question mark into PRODUCT_NAME to work around rdar://20187512 (WatchKit: iPhone "Apple Watch" app doesn't display localized app name). Apparently, the Apple Watch app for iPhone displays PRODUCT_NAME, not the localized watch app name. After fighting with the error message for several hours, we decided to just remove the question mark. Then the app could be submitted just fine.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Apple response
This is a known issue. You can workaround this issue by renaming your main executable so as to not contain .?*[] characters. Note: No need to rename the project or target or app; just rename the main executable; everything else can handle your question mark just fine.
We are closing this bug report.