Say you upload build 1192...
After waiting for some time, you get the email....
Only then you then finally see the following, on the itunesconnect.apple.com web site...
You can then at last click "Add groups to this build", and ultimately click "submit for review".
My question: is there a way to automate the waiting - to know when it is available to submit?
Thus,
Is there any way - other than watching for the email - to automate "knowing it has completed processing"? Example, does Apple send out the info on the API version, or something? Or is the email in fact the one and only way to know?
If no, are there any existing systems which either hijack your email or perhaps poll the server / an API / whatever, to know when "processing is completed"?
Once again, the specific questions here are...
Is there any way to know (api? message? other communication?) that it has completed processing?
If no, if there perhaps an existing system that watches email / polls to know?
Waiting for review means that apple team will review your app before allowing you to submit on TestFlight for public testing. It will take around 24~48 hours for them to review your app. After if your app is approved, you can submit on TestFlight and create public link for anyone with the link as tester.
Testing iMessage apps (iOS or iPadOS 10, or later)Install TestFlight on the iOS or iPadOS device that you'll use for testing. Open your email invitation or tap the public link on your iOS or iPadOS device. Tap View in TestFlight or Start Testing; or tap Install or Update for the app you want to test.
Approval usually takes no more than 48 hours. Once Apple approves your version of the app, subsequent builds won't need a review until you change the version number. When the app has passed Beta App Review, you'll receive an email with confirmation that your app can begin external testing.
Redeem code Once the app has been made available for testing, you receive an invitation from TestFlight to try it out. Open this invitation email on the device you're using and click on “View in TestFlight”. Once TestFlight opens, redeem the code from the provided universal link and open the app preview page.
Sounds like Fastlane's pilot
action is what you need:
The best way to manage your TestFlight testers and builds from your terminal
Based on the docs this would probably do what you need: generate the ipa you want to submit, then on the directory the iap is in run:
fastlane pilot upload
It uploads the ipa in the current directory, waits the validation and distributes it to testers. There is also other commands to add or remove testers, and parameters to set the descriptions and stuff. You can check all the options with fastlane action pilot
Fastlane can take care of everything so if you want you can setup a lane that builds and submits the app to TestFlight with a Fastfile
like this (you'll very have to tweak this to your project's specific needs):
default_platform :ios
platform :ios do
desc "Submit a new Beta Build to Apple TestFlight"
lane :beta do
#increment_build_number
gym(scheme: "Your Scheme”) # Build your app - more options are available
pilot # upload your app to TestFlight
# You can do much more run `fastlane actions` to see all the actions
end
Whenever you want a new build you can just run: fastlane beta
.
Edit: How They Wait For It?
Using Spaceship to poll iTunes Connect (not nice API, they do web scraping on the pages) and check - in a loop every X seconds - if the processing is done.
Fastlane has a simpler action called watchbuild
that its only job is to notify when processing is done. Check the source code for an example on how to use Spacechip: https://github.com/fastlane/watchbuild/blob/master/lib/watchbuild/runner.rb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With