trouble re-signing ipa file (made in animate for ios)
here is the thing: animate is marketed as a tool to develop once but to publish to many platforms, with one single development. When publishing to Android it gets the job done, more or less (there is a warning that from august this year it will also require a 64 bit binary in the bundle though), but when publishing to ios, if it did work once, whenever that was is now outdated. There are some requirements for the Apple store that animate does not document, does not include in its requirements when building the app and since it is animate the one that makes the bundle, when trying to add the rest of things, they way the bundle is built gets screwed.
At first it was a thing about required icons: there are some required icons and assets (like splash screens that are not even documented, since the documentation only mentions a single default file) that animate does not ask for or at least does not require, but are required either by xcode or by the store itself; then there is the asset catalog, that animate should build by itself but didn't. So you go over some searches and find about those things that are missing and you try to add them to your project; in my case, I added the asset catalog and some icons, and some splash screens; but then, when I was trying to upload the new build, it told me there was an error about a redundant binary because the version number was already used. No matter what version I placed on the version dialog box in the animate air for ios, it would always appear as version 0.9.0 in the ipa file, and it would not let me upload a new bundle with a version number I had already used, even if that bundle was not approved (because of the asset catalog). Whatever, I changed the ipa to a .zip, I change the bundle, of course the signature would not be valid, and xcode reminded me of that
to re-sign the ipa, which is in my documents, I open terminal, go to my documents folder and run the next line:
codesign -s xxxxx myapp.ipa
I assume it works because there is no error message. I know it found the certificate and the ipa, because if I change a letter either in the ipa name or the certificate, it will let me know with an error, and if I try to run the same line again it will tell me the ipa is already signed. Just to be clear, the ipa is the payload folder, with all changes made, with the added asset catalog and icons and modified plist, and zipped again, and renamed from zip to ipa. I also checked that the certificate was apple distribution certificate (and not development or other thing)
but when I use xcode to try to upload again the ipa with new files and new version, it will still give me an error that the signature is not valid. the most critical part is that there are just a few days to retry: besides of the error, there is a warning about current build using api 11, and from march this year all bundles must use api 12 or higher. So if I am not able to upload my thing this month, I will not be able to upload it with the whatever is it that this version of animate has built
how do I re-sign my modified, zipped folder?
tnx
