New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gym] iOS Export Options "Destination" Handling #16609
[gym] iOS Export Options "Destination" Handling #16609
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
@googlebot I fixed it. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
@DomenicBianchi01 I learned so much from this! 🤯 Hopefully I learned the right thing though lol... So if I’m understanding this correctly, you use This code change totally makes sense and looks good from a review standpoint. I’m going to try to get something setup locally to test this because I really want to see this working on my own machine too 😇 |
Oh my goodness I did it! I uploaded an IPA through |
Correct! At the company I work at, we have multiple targets, each which need to be signed using a different team id/provisioning profiles/certificates/etc. By setting the Without these changes, I need to manually provide the iTMSTransporter team id to |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
@DomenicBianchi01 Thanks again for adding support for this! I pushed a commit on to this to also add this for mac as well. I will get this merged in tomorrow morning and out in the next release 💪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is 🔥 Thanks so much for making this change! I’m going to be adding this to some of my projects 😊 Really appreciate the contribution!
Hey @DomenicBianchi01 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations! 🎉 This was released as part of fastlane 2.154.0 🚀
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
gym
supports passing in archive export options through theexport_options
parameter. Whengym
runsfastlane/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive ...
, it expects that a.ipa
file (amongst other files) will be created afterwards.However, if within
export_options
you specifydestination: "upload"
, no external files are generated (including the.ipa
) sincedestination: "upload
tellsxcodebuild
to upload to iTunes Connect immediately.As a result, if you specify
destination: "upload"
, the archive will successfully upload to iTunes Connect (assuming you have configured everything else correctly), but you will get the following error:The purpose of this PR is to prevent Fastlane from displaying this misleading error.
Description
The changes in this PR are fairly straight forward.
I simply check if the export options plist contains the
destination
key with a value ofupload
. If it does, the code no longer executes the "move" related functions (since there are no files to move in the first place).Testing Steps
Run
gym
using the following export options (depending on how your specific Xcode project is configured, you might need to include other options):Also, specify
export_team_id
(an existing gym parameter)