-
Notifications
You must be signed in to change notification settings - Fork 54
XCode 7: The generated archive is invalid #115
Comments
Hi @aloifolia did you find a solution to this? I am facing the same issue as well. |
You could try using the |
@KrauseFx that worked beautifully thank you so much! |
Yeah 👍 |
This option does not work for me. I guess, the validation is still performed... So, back to the question: Can I disable it somehow? If I use the following 3 lines to generate an IPA file I can install the app without any problems:
where |
Strangely, I had this problem, switched to legacy_build_api and that solved it, and now today I've got the problem again. My hope is that I made a change that broke code signing but interesting to see someone else having the issue |
@aloifolia think I've got a fix for you. @KrauseFx think I've got a bug for you :) I changed three things from when it was working: I was calling
and dropped the output paths to just ...and I was specifying an output folder for the gym build I'm currently testing to determine which is the root cause (my builds take forever) but the fact that you're specifying a path for the build output makes me think that's the culprit. |
Alright, so removing the
and it's fixed with:
I see now that output_directory and archive_path were probably conflicting or something ( so maybe this doesn't solve your issue @aloifolia ) but honestly there are like 4 'output' related variables and it's kinda confusing
I assumed they were all just specifying where the products of the build/archive would end up, and wouldn't affect the successful completion of the action. |
I fixed this by putting
Looking at the gym source code, the problem seems to be in runner.rb in the verify_archive method, the line with |
Please update to the latest release and let me know if that works for you 👍 |
Unfortunately the latest release didn't work for me but I've submitted a pull request (#134) with a fix that does though :) |
Fix for issue #115, 'Generated archive is invalid'
This issue was migrated to fastlane/fastlane#3179. Please post all further comments there.
|
Is it possible to skip the validation of a generated archive? I use the following lane to archive and export my enterprise app:
The archive is generated but not exported to an .ipa file, probably because the verification fails:
To give you some more information: The validation does not work in XCode, as well (even if I do not use fastlane but XCode's UI to generate the archive). However, if I click 'Export' in XCode and move the generated .ipa to my iPad it can be started without any problems. I don't know whether this is an XCode 7 bug. On the other hand, I am using a configuration that is a little bit confusing:
The Release should actually use a Distribution certificate. Since this does not seem to work (also have a look at the Apple forums) I chose the standard Developer certificate.
The text was updated successfully, but these errors were encountered: