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
[pilot][upload_to_testflight] add Mac support #19296
Conversation
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 looks very good to me 🚀 also those pkg unit tests in BuildManager ❤️ 🔥
@@ -108,7 +118,8 @@ def wait_for_build_processing_to_be_complete(return_when_build_appears = false) | |||
timeout_duration: config[:wait_processing_timeout_duration], | |||
return_when_build_appears: return_when_build_appears, | |||
return_spaceship_testflight_build: false, | |||
select_latest: config[:distribute_only] | |||
select_latest: config[:distribute_only], | |||
wait_for_build_beta_detail_processing: true |
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.
BuildWatcher
is used for build uploads or in submit_for_review
.
Could you explain why when return_when_build_appears = false
we want to always wait for buildBetaDetails
processing when we upload builds but when wesubmit_for_review
we skip waiting for buildBetaDetails
processing?
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.
@lucgrabowski By submit_for_review
you mean using deliver
, right? A not pilot
? buildBetaDetails
includes flags for "internal testing state" and "external testing state". Processing the binary for App Store submittal and processing the binary for testing distribution are apparently two different things in App Store Connect
Since pilot
deals with testing, the App Store Connect API will give an error if the internal and external testing state are still "processing". Submitting a binary for review does not care about the testing state so these don't need to be watched. IDEALLY they should finish at the same time but they aren't designed to.
Hope that helps 😊
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.
@joshdholtz Many thanks for explanation 🚀
That really makes sense :)
Hey @joshdholtz 👋 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.193.0 🚀
Hi, thanks for that feature! I am trying to implement this, the upload works 👍 However I am unable to select the uploaded build in AppStore Connect. I watched the WWDC session regarding the TestFlight and macOS. They mention, that we must manually create a special provisioning profile if we don't use automatic codesigning. I am building an Electron app using electron-builder, thus I use manual codesigning. I am unable to find any information on what provisioning profile is necessary. HI also asked for help in the Apple Developer Forums Maybe someone here can point me in the right direction. thx |
Hi @idoodler |
Hi, I'm also having trouble with this feature. It seems the For reference, here are my calls to
|
@idoodler I'm packaging Qt app. I found a solution how to successfully upload macOS App to TestFlight. The following attributes should be added to <key>com.apple.application-identifier</key>
<string>XXXXXXX.com.sample.app</string>
<key>com.apple.developer.team-identifier</key>
<string>XXXXXXX</string> In addition, you should supply the app with |
@tremblay I am not using |
@uglide Thanks, I will try that with todays alpha build. Did you figure that out yourself, or is there a source you found that information? |
@tremblay I just checked the documentation of fastlane. You may want to use a different |
@uglide No, this did not the trick for me. It still states that the build is not available for TestFlight testing. |
@uglide I was just checking the |
@idoodler new one generated after Testflight release. |
Motivation and Context
Apple opened up TestFlight to Mac apps on August 24, 2021
Description
pkg
ios
as default option onapp_platform
optionprocessing?
that will return true when internal and external states are done processingTesting Steps
Update
Gemfile
and runbundle install
,bundle update fastlane
, orbundle update