问题
I am attempting to submit a new version of my app to the App Store.
I am using Xcode 6 GM. The previous version of this app was submitted with Xcode 5.1 without issue.
After I generate the app archive, I click "Validate..." in the organiser. Xcode takes me through the process of selecting my developer team and verifies the provisioning profile that will be used.
It then starts to generate the package before failing with the message
ditto: Couldn't read PKZip Signature Unable to extract archive. Please make sure /var/....path to .pkg is a valid zip or ipa archive.
I have navigated to the directory and tried zip on the command line - this gives an error. If I rename the file to .zip then Finder is happy to unzip it, but Zipeg also returns an error.
What I have tried:
- Build->Clean
- Recreated the provisioning profile
- Recreated my signing certificate
- Checked all of the "code signing" settings are the same as for my other projects that work
I have also looked into the log files that are created by the packaging process and there is nothing untoward listed until the error about the invalid zip file.
Has anyone seen this?
回答1:
I have received details of a work-around from Apple developer support.
- Open your target's Info.plist
- Select an entry in the plist and then select "Show raw keys & values" from the Editor menu
- Ensure the key "LSRequiresIPhoneOS" has the value "YES" (add it if necessary)
- Regenerate your archive and submit
来源:https://stackoverflow.com/questions/25758669/cant-read-pkzip-signature-validating-app-for-app-store